AP_OBC: fixed resume on GPS loss
This commit is contained in:
parent
24dcbe1b0e
commit
0a80b69e62
@ -125,7 +125,7 @@ APM_OBC::check(APM_OBC::control_mode mode,
|
||||
_state = STATE_GPS_LOSS;
|
||||
if (_wp_gps_loss) {
|
||||
if (_command_index != NULL) {
|
||||
_saved_wp = _command_index->get() + 1;
|
||||
_saved_wp = _command_index->get();
|
||||
}
|
||||
change_command(_wp_gps_loss);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user