This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
DimitarBogdanov's profile picture

Tracking a Pocket computer on a (stationary) computer?

Started by DimitarBogdanov, 22 September 2017 - 10:20 AM
DimitarBogdanov #1
Posted 22 September 2017 - 12:20 PM
Hello! I am trying to finish my program I started yesterday, but I can't make the last script. All I want is the stationary computer to be able to track the X, Y, Z co-ordinates of a pocket computer wirelessly. I can't seem to make it. And please, don't send me direct code. I want to learn and combine the program myself, just send me tips so I can know what to do.
KingofGamesYami #2
Posted 22 September 2017 - 03:45 PM
You can do this if you have 4 stationary computers. 1 isn't going to cut it.

See this tutorial
CLNinja #3
Posted 22 September 2017 - 05:03 PM
You have to set up a GPS cluster. It uses trilateration to find the signal based on distance and the computers coordinates themselves.
Dog #4
Posted 22 September 2017 - 05:19 PM
The easiest way to setup a GPS cluster would be to use Lyqyd's Project Builder or GPS Deploy. Shameless plug: if you choose to go with GPS Deploy, you might want to grab the latest community updated version - it has quite a few fixes and tweaks.
Edited on 22 September 2017 - 03:20 PM
DimitarBogdanov #5
Posted 22 September 2017 - 05:48 PM
You can do this if you have 4 stationary computers. 1 isn't going to cut it.

See this tutorial
You have to set up a GPS cluster. It uses trilateration to find the signal based on distance and the computers coordinates themselves.
The easiest way to setup a GPS cluster would be to use Lyqyd's Project Builder or GPS Deploy. Shameless plug: if you choose to go with GPS Deploy, you might want to grab the latest community updated version - it has quite a few fixes and tweaks.
Guys, first of all, I wanted to try locating the pocket computer's co-ordinates on the pc, I mean, real-time co-ordinates of the pocket pc shown on the pc
Second, I said pocket pc. I tried everything I can do to run these two TURTLE programs but no luck.
KingofGamesYami #6
Posted 22 September 2017 - 06:10 PM
The turtle isn't used for anything but setup. You can do everything the turtle does by hand, if you like.

You will have to do some reverse engineering of the GPS program, as it would normally be used in the opposite direction - position would be displayed on the pocket computer. It's possible to do it the other way around, but it's not built-in.
DimitarBogdanov #7
Posted 22 September 2017 - 07:37 PM
The turtle isn't used for anything but setup. You can do everything the turtle does by hand, if you like.

You will have to do some reverse engineering of the GPS program, as it would normally be used in the opposite direction - position would be displayed on the pocket computer. It's possible to do it the other way around, but it's not built-in.

I know what is the turtle's purpose, I am trying to do another thing. I don't want my computer to be placed so it does track – that why I use pocket computers, but I think I have gone too far in explanations.

Okay, thanks for the tip for reversing the gps program I will try it out right now.
Dog #8
Posted 22 September 2017 - 08:38 PM
If I understand correctly what you're trying to do, might I suggest this approach…

Set up the GPS cluster, then have the pocket pc get it's coords on a regular basis and send those coords to the 'tracking' computer. The tracking computer wouldn't really be tracking the pocket pc but it would have accurate tracking data.

Without some kind of cheat or mod (or possibly a command computer?) I don't know of any other way in CC that will allow you to accurately track a pocket pc without multiple points of reference (e.g. a gps cluster of some sort). I'm also not sure how you'd go about getting a remote object's coords without having that object (e.g. the pocket pc) get it's own coords and then pass them on.
KingofGamesYami #9
Posted 23 September 2017 - 12:00 AM
I'm also not sure how you'd go about getting a remote object's coords without having that object (e.g. the pocket pc) get it's own coords and then pass them on.

Say the pocket pc sends a message over rednet: that message could be used by 4 computers working together to locate it. Same theory as regular GPS, but without the client participating beyond the initial message.
CLNinja #10
Posted 23 September 2017 - 04:56 AM
I'm also not sure how you'd go about getting a remote object's coords without having that object (e.g. the pocket pc) get it's own coords and then pass them on.

Say the pocket pc sends a message over rednet: that message could be used by 4 computers working together to locate it. Same theory as regular GPS, but without the client participating beyond the initial message.
Adding on to this, its theoretically possible (with modification to the default GPS program or creation of your own) to make a reverse GPS, making it possible to find the location of something transmitting messages.