Minor fix in "set mode" command handling.

This commit is contained in:
Anton Babushkin
2013-08-25 20:17:42 +02:00
parent 7ab129ba92
commit 725bb7697c
2 changed files with 7 additions and 8 deletions
+1 -1
View File
@@ -201,7 +201,7 @@ handle_message(mavlink_message_t *msg)
custom_mode.data = new_mode.custom_mode;
/* Copy the content of mavlink_command_long_t cmd_mavlink into command_t cmd */
vcmd.param1 = new_mode.base_mode;
vcmd.param2 = custom_mode.data_float;
vcmd.param2 = custom_mode.main_mode;
vcmd.param3 = 0;
vcmd.param4 = 0;
vcmd.param5 = 0;