Skip to content

Commit

Permalink
mavlink : fix pointer for main_mode and sub_mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mhkabir authored and LorenzMeier committed Apr 11, 2018
1 parent 1b1617b commit 28f9b38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/mavlink/mavlink_messages.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 28f9b38

Please sign in to comment.