small refactor (#5155)

This commit is contained in:
Sebastian Quilter 2016-07-28 14:49:37 -07:00 committed by Lorenz Meier
parent 9f5b081257
commit 3b7ba915a8
1 changed files with 1 additions and 3 deletions

View File

@ -227,9 +227,7 @@ void get_mavlink_mode_state(struct vehicle_status_s *status, uint8_t *mavlink_st
break;
case vehicle_status_s::NAVIGATION_STATE_OFFBOARD:
*mavlink_base_mode |= MAV_MODE_FLAG_AUTO_ENABLED
| MAV_MODE_FLAG_STABILIZE_ENABLED
| MAV_MODE_FLAG_GUIDED_ENABLED;
*mavlink_base_mode |= auto_mode_flags;
custom_mode.main_mode = PX4_CUSTOM_MAIN_MODE_OFFBOARD;
break;