Hi all!
I was reading this post and I try test the next after arm the ROV:
# MAV_CMD_DO_SET_SERVO inside of MAV_CMD
master.mav.command_long_send(
1,
1,
183,
0,
1,
1400, 0, 0, 0, 0, 0
)
and I see that the QGC show this message:
Set servo command failed
Then I test change the mode Manual, Stabilize, etc…
**# MAV_CMD_DO_SET_MODE inside of MAV_CMD **
master.mav.command_long_send(
1,
1,
176,
0,
1, # I change this with 0,19, 10 and always have the same output
0, 0, 0, 0, 0, 0
)
And I receive this output:
Set Flight mode command not supported
So, What is wrong with this?
And also, what is the difference between MAVLink Type Enumerations and MAVLink Messages?
MAVLink Type Enumerations have many sub titles and the ID is not unique, for example, between MAV_SENSOR_ORIENTATION and MAV_CMD.
What is the idea general? To know how choose one or other and the functions of pymavlink to execute one or other.
Finally, you recommend use the manual_control, and this command belong to MAV_CMD,
I can use this command with command_long_send?
For example:
master.mav.command_long_send(
1,
1,
manual_control, # or 69
0,
1,
0, 0, 0, 0, 0, 0
)
But, this have this parameters:
target,
x,
y,
z,
r,
buttons
Then, I have very confused about how use your suggest.
Greetings!