mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 21:33:34 +08:00
Checkpoint: More state machine fixes, commited to wrong branch and now copied over
This commit is contained in:
@@ -230,10 +230,12 @@ get_mavlink_mode_and_state(uint8_t *mavlink_state, uint8_t *mavlink_mode)
|
||||
*mavlink_mode |= MAV_MODE_FLAG_MANUAL_INPUT_ENABLED;
|
||||
}
|
||||
|
||||
// if (v_status.system_state == NAVIGATION_STATE_SEATBELT) {
|
||||
//
|
||||
// *mavlink_mode |= MAV_MODE_FLAG_DECODE_POSITION_GUIDED;
|
||||
// }
|
||||
if (v_status.navigation_state == NAVIGATION_STATE_SEATBELT
|
||||
|| v_status.navigation_state == NAVIGATION_STATE_SEATBELT_DESCENT
|
||||
|| v_status.navigation_state == NAVIGATION_STATE_SEATBELT_STANDBY) {
|
||||
|
||||
*mavlink_mode |= MAV_MODE_FLAG_GUIDED_ENABLED;
|
||||
}
|
||||
//
|
||||
// if (v_status.system_state == NAVIGATION_STATE_SEATBELT) {
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user