HAL_SITL: cope with no _sitl state
This commit is contained in:
parent
468c532290
commit
b28912c351
@ -341,9 +341,7 @@ void SITL_State::_fdm_input_local(void)
|
||||
_check_rc_input();
|
||||
|
||||
// construct servos structure for FDM
|
||||
if (_sitl != nullptr) {
|
||||
_simulator_servos(input);
|
||||
}
|
||||
|
||||
#if HAL_SIM_JSON_MASTER_ENABLED
|
||||
// read servo inputs from ride along flight controllers
|
||||
@ -351,9 +349,7 @@ void SITL_State::_fdm_input_local(void)
|
||||
#endif
|
||||
|
||||
// replace outputs from multicast
|
||||
if (_sitl != nullptr) {
|
||||
multicast_servo_update(input);
|
||||
}
|
||||
|
||||
// update the model
|
||||
sitl_model->update_home();
|
||||
|
Loading…
Reference in New Issue
Block a user