mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-18 07:10:36 +08:00
Added additional vector functions, fixed seatbelt for global estimators
This commit is contained in:
@@ -228,8 +228,9 @@ main_state_transition(struct vehicle_status_s *current_state, main_state_t new_m
|
||||
|
||||
case MAIN_STATE_SEATBELT:
|
||||
|
||||
/* need altitude estimate */
|
||||
if (current_state->condition_local_altitude_valid) {
|
||||
/* need at minimum altitude estimate */
|
||||
if (current_state->condition_local_altitude_valid ||
|
||||
current_state->condition_global_position_valid) {
|
||||
ret = TRANSITION_CHANGED;
|
||||
}
|
||||
|
||||
@@ -237,8 +238,9 @@ main_state_transition(struct vehicle_status_s *current_state, main_state_t new_m
|
||||
|
||||
case MAIN_STATE_EASY:
|
||||
|
||||
/* need local position estimate */
|
||||
if (current_state->condition_local_position_valid) {
|
||||
/* need at minimum local position estimate */
|
||||
if (current_state->condition_local_position_valid ||
|
||||
current_state->condition_global_position_valid) {
|
||||
ret = TRANSITION_CHANGED;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user