Changing flight modes #57
Replies: 5 comments 12 replies
-
Here is the command that you can use to set ros2 service call /mavros/set_mode mavros_msgs/srv/SetMode "{custom_mode: 'GUIDED'}" |
Beta Was this translation helpful? Give feedback.
-
I would like to follow up with this to say though that, when I tried this out, I am able to set the mode to
I wonder if there might be some parameters that need to be modified to support this? I remember that reading some comments a while back that discussed something along the lines of GUIDED mode not being supported unless a GPS was available. |
Beta Was this translation helpful? Give feedback.
-
@rakeshv24 do you have any ideas how to easily enable |
Beta Was this translation helpful? Give feedback.
-
@ssicari Here are are couple of related threads that might be useful:
These threads discuss that GPS feedback is required, so it may be necessary to integrate a GPS plugin to provide feedback to ArduSub from Gazebo. |
Beta Was this translation helpful? Give feedback.
-
@ssicari I was chatting with @rakeshv24 and it sounds like the existing position information should be sufficient for enabling GUIDED mode, which indicates that there may be a bug elsewhere. The DVL integration uses the same interface here. I think we could try using the same parameters that the DVL uses to see if that works. |
Beta Was this translation helpful? Give feedback.
-
Per @ssicari: After further investigating the use of QGroundControl (QGC), QGC recognizes the motors being armed and disarmed. It is not currently depicting the location of the vehicle, and when I try to run a basic way point mission it fails because it can not enter
GUIDED
mode. I have tried to manually test if I can put the vehicle intoGUIDED
mode via the ROS CLI but can not get it to recognize the command. Following the MAVROS docs, I can check the current mode it is in and see the possible modes it could change to, but everytime I try to actually change the mode, it says invalid passed service type. I was wondering if you have manually changed modes before and had a working command because the ones directly from the docs don't seem to work along with a few other variations I have tried. Thank you!Beta Was this translation helpful? Give feedback.
All reactions