mavlink : fix pointer for main_mode and sub_mode

This commit is contained in:
Mohammed Kabir 2018-04-11 15:49:57 -04:00 committed by Lorenz Meier
parent 1b1617b5a0
commit 28f9b38919
1 changed files with 2 additions and 2 deletions

View File

@ -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: