ArduRover not following mission or rtl correctly

I have been working on getting a ardurover to follow a mission for a little while now, with no luck. Here is what has happened…

First, the robot wasn’t even moving when in auto mode | fixed by changing servo1_function to throttleLeft and servo3_function to throttleRight.

Second, the robot would spin uncontrollably in auto mode | fixed by leaving it for 2 weeks then coming back to it and using these instructions to edit my config.

Third, the robot would spin slower, and more controlled, but wouldn’t go straight in auto mode | fixed by un-reversing Servo1.

Fourth, the robot would go straight, in a semi-random line. Would get onto a line type of thing, but not the mission line | unfixed.

Fifth, robot goes somewhere random in rtl mode | also unfixed.

In addition to the things above I used the official rover documentation to get basic configuration.
Those seem to be the main problems at the moment. The GPS seems to be fine, the compass looks like it is oriented in the correct position (I have calibrated it quite a bit thinking it was that, no luck).

Potential causes:

  • GPS module is not working properly
  • Robot has four wheels, only back two drive it
  • Something to do with PID settings
  • Configuration is wrong
  • Aliens…

This is the robot setup:



I can answer any questions!

OS: Ubuntu 20.04
QGroundControl Version: Screenshot from 2021-10-15 15-00-37

Rover Firmware: 4.0
GPS Module: readytosky
Pixhawk Model: 2.4.8
Motor Controller: Talon SR
Config File: config.txt (25.5 KB)
Mission:

Hi Carsten,
Welcome to the discussion forum and first of all - Nice looking robot, there.
Nowhere in your description of your trials did you mention going through the low-level tuning procedures. You must have the speed and throttle controller and turn rate controller tuned before you can tune the higher-level NAV L1 controller. If you follow the steps starting at Tuning Process Instructions — Rover documentation (ardupilot.org) and continuing on the successive pages, you will likely see a dramatic improvement!

Tuning can be very time consuming and frustrating, but those instructions are very good. They are quite concise, as in, even a short sentence there is important.

Good luck!

Thank you, I will get to it sometime next week, I will let you know if my situation gets better!

1 Like