-
Notifications
You must be signed in to change notification settings - Fork 986
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to set modes with the current mavros code? #134
Comments
I do not like that there is more than one way to change the mode (command or SET_MODE). And implementation deference:
Perhaps i remove this shortcut and add set_mode service that will use SET_MODE message. |
That seems to be a good option to me :)
This set_mode srv will allow set modes for both PX4 and APM simple and custom modes right? |
Implented only `mode` operation. Issue #134.
@TSC21 check new tool - mavsys. It sets any mode via SET_MODE message.
|
Will do it 👍 just updating mavlink now! |
It's working! 👍 When adding info to wiki, can you please add a list of all possible base and custom modes available? It can be helpful to users. |
Ok. Now you can find all supported strings here: https://github.com/vooon/mavros/blob/master/mavros/src/lib/uas.cpp#L64 |
Do you know why the PX4 FCU gets to AUTO.LAND when we arm it using the |
No idea. |
I suppose it's the state machine behaviour when receiving that command. Probably ask on the PX4 Firmware side. |
Already know the answer. It's a failsafe measure. If you don't have a RC connected, it goes to I think I can close this now 👍 |
I'm trying to set modes using the command line. Searching in the current scripts I haven't found any which can be used to set modes, which can be only sent by
rosservice call /mavros/cmd/set_mode "mode:xxx"
. Can be a good thing to add tomavcmd
some alias likeAnyway, the thing I want to know is how can I set modes beyond the ones of MAV_MODE ENUM available in https://github.com/vooon/mavros/blob/master/mavros/srv/CommandMode.srv? I see there's also the
px4_custom_mode.h
insrc
but how can it be used as to set the those modes via terminal, like for examplePOSCTL
orOFFBOARD
?Thanks in advance!
The text was updated successfully, but these errors were encountered: