@kvnchowx wrote:
Summary of issues I am having:
- Cannot set mode to AUTO in Ardupilot via Mavros
- Cannot set a home position in Ardupilot via Mavros
Details:
So I’m working with the Navio2 on a Raspberry Pi 3 Model B+, running Ardupilot (set for Ardurover) and running ROS. However, I’ve been having trouble setting the mode to AUTO.
So I can set other modes like HOLD and MANUAL perfectly fine. AUTO is the only mode that’s giving me issues.
I understand that in order for Mavros to allow AUTO mode to be enabled, there needs to be a GPS fix. However, even when I have a GPS fix, Mavros still will not allow me to switch to AUTO mode. (the console text would tell me that the changing of the flight mode failed if I try)
In addition to first waiting for a GPS fix, I have also tried setting a waypoint (which I can successfully do) and then after doing that, tried setting the mode to AUTO. This also failed.
The next thing I tried was setting the home position. However, every time I tried to set a command for setting the home position, I would be told that the command failed and was given an error code of 4. I couldn’t find anything in the Mavros documentation or anywhere else online that explains what this “4” means. Furthermore, I was also told to check the mavros logs, but nothing online seems to help me in finding where these logs are.
There were a few variations of ways to set the home position, and they all seemed to take in the same parameters as described in http://docs.ros.org/api/mavros_msgs/html/srv/CommandHome.html . All of these ways gave me the error described in the paragraph above.
Posts: 1
Participants: 1