forked from Archive/PX4-Autopilot
mavlink : fix pointer for main_mode and sub_mode
This commit is contained in:
parent
1b1617b5a0
commit
28f9b38919
|
@ -209,8 +209,8 @@ void get_mavlink_navigation_mode(const struct vehicle_status_s *const status, ui
|
|||
|
||||
case vehicle_status_s::NAVIGATION_STATE_AUTO_PRECLAND:
|
||||
*mavlink_base_mode |= auto_mode_flags;
|
||||
custom_mode.main_mode = PX4_CUSTOM_MAIN_MODE_AUTO;
|
||||
custom_mode.sub_mode = PX4_CUSTOM_SUB_MODE_AUTO_PRECLAND;
|
||||
custom_mode->main_mode = PX4_CUSTOM_MAIN_MODE_AUTO;
|
||||
custom_mode->sub_mode = PX4_CUSTOM_SUB_MODE_AUTO_PRECLAND;
|
||||
break;
|
||||
|
||||
case vehicle_status_s::NAVIGATION_STATE_AUTO_RTL:
|
||||
|
|
Loading…
Reference in New Issue