Hello. I have a problem. I try to use wheel-encoders for non-gps navigation for my rover. I used instructions from here Wheel Encoders — Rover documentation (ardupilot.org) . When I choose the point the map in auto mode, rover drive there and everything is ok, until it reaches waypoint, after that rover just moves on the map with huge speed (around 180 m/s). But in reality it stopped. I have checked wheel distance in MAVlink inspector and readings from encoders are accurate. They do not change when rover stopped. I am using AUX pins for my encoders. I use JGB37-520 motors with encoders. Could somebody help me? (sorry for mistakes in the next, it is not my native language, i am 15 years old and need this rover for competition )
I have tried this at home many times on a reduced space, and I think this has happened with one wheel encoder wrong (going negative when it should go positive (simply exchange WENC_ pin definitions)).
WENC_ distances go both positive for forward movement, and both negative going backwards. When the doll rotates (in Acro or Manual) one goes positive and the other negative. So make sure you have the WENC_ pin assingments correct.
Do the following:
Start with some WENC_ definitions and move forward the vehicle straight a known distance, such as 10m. Adjust pin definitions and WENC_CPR’s until above curves on MP show exactly 10m, both positive.
Prepare some mission on a reduced space (such as that on the video) and define the home position with a lua script. Coordinates can be virtual.