mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-01 13:30:36 +08:00
Add support for switching to auto modes via SET_MODE
This commit is contained in:
committed by
Andreas Antener
parent
7b9d49f6b6
commit
4e4f780ecc
@@ -539,7 +539,7 @@ MavlinkReceiver::handle_message_set_mode(mavlink_message_t *msg)
|
||||
/* copy the content of mavlink_command_long_t cmd_mavlink into command_t cmd */
|
||||
vcmd.param1 = new_mode.base_mode;
|
||||
vcmd.param2 = custom_mode.main_mode;
|
||||
vcmd.param3 = 0;
|
||||
vcmd.param3 = custom_mode.sub_mode;
|
||||
vcmd.param4 = 0;
|
||||
vcmd.param5 = 0;
|
||||
vcmd.param6 = 0;
|
||||
|
||||
Reference in New Issue
Block a user