add getPosition() that does not rely on 4 computers acting as satellite. Reasons below.
DevL0rd opened this issue ยท 7 comments
It would be nice to be able to get the current position of the computer/turtle/tablet computer.
I made a self learning bot with turtles in an old version of MC that used peripherals ++ to get exact position.
I also built a system where my tablet PC communicated with nodes at my base to auto open doors when i got near them or when i crouched, or to automatically select the nearest computer to send commands to.
The GPS setup for computer craft is far too inaccurate.
And it's extremely inefficient to keep making a bunch of 4 computer satellites that have limited range.
I don't think it should be a peripheral, unless you would like to add a peripheral that groups up to 4 peripherals so i can use the modem and the gps module at the same time.
Just having your position and wireless communication unlocks so much that you could code!
The GPS setup for computer craft is far too inaccurate.
Sounds to me like you need to use more than 4 'satellites'. Just like in the real-world, the more GPS satellites you have access to result in a more accurate calculation.
Make sure that you avoid having satellites on the same x
or y
plane to ensure high x
/y
accuracy, and you definitely need to have a couple on different z
planes to get an accurate result for your z
; basically what I'm saying is spread out the satellites.
You can use 4 well-placed GPS hosts with ender modems (which have unlimited range) and have high accuracy long range GPS already.
I personally think the existing GPS system is a much more interesting approach. One is a bit of Java code that gives access to Minecraft internals, the other is actually a challenge you need to solve. If its not accurate enough, perhaps you can offer ways to improve the GPS instead
There's always LAMA, you have to tell the turtle where it is once and then it tracks its movement to figure out its position when it needs it later.
Or you could use one of the many GPS deployment scripts which should place your GPS satellites in optimal positions.
@apemanzilla Wow, I didn't know ender modems had higher accuracy over long distance.
@theoriginalbit i'll take your suggestion and try spreading satellites of different altitude and spread.
Also, @Lupus590, My bot already works by keeping track of its relative position. however there are some instances where it can loose track of where it is at that i have ran into rarely. Regardless this solution of course does not apply to tablet computers.
@DevL0rd I've never had issues where a turtle running LAMA has gotten lost. LAMA uses fuel tracking to confirm that the movement succeeded, this allows LAMA to keep accuracy over chunk/server reloads. What are you using for turtle position tracking?
And yes, LAMA doesn't work with pocket computers, but the player could just check F3.