merlinlikethewizard / Mastermine

A fully automated strip mining network for ComputerCraft turtles!
MIT License
88 stars 23 forks source link

turtles not linking properly, possibly issue with gps array? #23

Open LimeE2 opened 3 years ago

LimeE2 commented 3 years ago

i put "disk/turtle.lua" after getting everything set up, put in the computer id all right, once its linked its in Halt, not displaying coords, and facing Nil, none of the buttons work, but the fuel counter on the monitor updates accordingly 2021-06-19_19 31 15

merlinlikethewizard commented 3 years ago

Hmm, I can't think of any obvious explanations... The turtle is successfully communicating so rednet is working, and it's fueled so it should be able to move. It being in 'halt' is really weird because that shouldn't even be able to happen until the turtle has calibrated (at which point it would know its coordinates).

Couple questions. Is this the first turtle you connected? What does the 'whosmine' tab on the hub computer look like? Hopefully we can get to the bottom of this.

LimeE2 commented 3 years ago

this is the second turtle ive connected, however the first turtle had the same issue, i just tried a different one in case that turtle was just busted or something. the whosmine tab is printing off cycle numbers with "Sending: calibrate directive to 14" sending every 5 - 10 lines image

merlinlikethewizard commented 3 years ago

I see. It looks like the turtle is failing to calibrate for some reason. You said there could be something wrong with the GPS array? If any of the coordinates are even slightly off it can break it. An easy way to check would be to type "gps locate" into any computer with a modem and see if it gives you the correct coordinates.

LimeE2 commented 3 years ago

one of the gps computers was slightly off, so i fixed it and now it displays the turtles coords, but now when i try to set the turtle up again it turns right, goes forward, then back, then its in halt. i can control it manually now, but none of the reset/update/clear buttons have any effect

PanGeo-Code commented 3 years ago

one of the gps computers was slightly off, so i fixed it and now it displays the turtles coords, but now when i try to set the turtle up again it turns right, goes forward, then back, then its in halt. i can control it manually now, but none of the reset/update/clear buttons have any effect

I had this same issue when setting up. Except my gps is setup correctly and the monitor is displaying coardinates.

I got my turtles to work in the following steps: Move them forward and then press reset

This has worked for me whenever they only moved forward and backwards after setup this way it goes to its park possition and update the state to parked and this makes it so it can actualy auto mine.

But u might have a different problem.

This is still a bug however.

LimeE2 commented 3 years ago

tried it, it goes lost>idle>halt after i hit reset, so that doesnt seem to work in my case

PanGeo-Code commented 3 years ago

Try forward Return and then reset? i dont remember if i did this or the one i said in my reply.

LimeE2 commented 3 years ago

seems to have the same effect

PanGeo-Code commented 3 years ago

seems to have the same effect

i also tried pressing all kinds of buttons and then try the excamples i gave

But keep in mind IF this works its not a fix its a Workaround.

but if this also doesnt work then idk what will.

merlinlikethewizard commented 3 years ago

I have an idea of what might be happening. When turtles boot or reset they change to state 'lost' which is when they try to find out where they are. If they can't figure it out (meaning they're in undefined territory), they just switch to 'halt' because they don't know what to do.

So my guess is that they think they're outside of the control room area, which is defined as an 8 block radius around the mine entrance. I might check the config file to see if the 'mine_entrance' field has the right coordinates, particularly the y value which should be equal to the height of the disk drive block. I'd also make sure the turtles are starting off within 8 blocks of the entrance (or change the size of the control room in the config if necessary).

Or it could be a bug. So if none of that works I can take a closer look.

PanGeo-Code commented 3 years ago

I have an idea of what might be happening. When turtles boot or reset they change to state 'lost' which is when they try to find out where they are. If they can't figure it out (meaning they're in undefined territory), they just switch to 'halt' because they don't know what to do.

So my guess is that they think they're outside of the control room area, which is defined as an 8 block radius around the mine entrance. I might check the config file to see if the 'mine_entrance' field has the right coordinates, particularly the y value which should be equal to the height of the disk drive block. I'd also make sure the turtles are starting off within 8 blocks of the entrance (or change the size of the control room in the config if necessary).

Or it could be a bug. So if none of that works I can take a closer look.

19 This is my issue. (Similar ish)

i Think its a Bug i had the same Except i could work aroud it by moving the turtle forward bij hand and then reseting it (Wich makes the turtle move to the possition park before pairing.)

If you have time today could you check my Discord messages?

Roodiger commented 3 years ago

I had the same issue. For some reason it fixed it when I ran disk/hub.lua instead of typing reboot in the main computer.

Shaggs25x commented 3 years ago

Any solution to this been tryin to find a fix for days.. All cords for gps system are perfect and mine entrance gps is perfect but its just stuck calibrating... had one turtle finally fix itself but it went like 30 blocks away... Went back a quadruple checked all gps stuff and still a no go.

theerg142 commented 3 months ago

one of the gps computers was slightly off, so i fixed it and now it displays the turtles coords, but now when i try to set the turtle up again it turns right, goes forward, then back, then its in halt. i can control it manually now, but none of the reset/update/clear buttons have any effect

I had this same issue when setting up. Except my gps is setup correctly and the monitor is displaying coardinates.

I got my turtles to work in the following steps: Move them forward and then press reset

This has worked for me whenever they only moved forward and backwards after setup this way it goes to its park possition and update the state to parked and this makes it so it can actualy auto mine.

But u might have a different problem.

This is still a bug however.

This was a life-saver. Forward 1, reset, Boom, works now