AP_HAL_SITL: do not overwrite FETTecESC telemetry data w/SITL ESC data
This commit is contained in:
parent
42c2f8d9f3
commit
129eb4c184
@ -85,6 +85,14 @@ void RCOutput::push(void)
|
||||
memcpy(_sitlState->pwm_output, _pending, SITL_NUM_CHANNELS * sizeof(uint16_t));
|
||||
_corked = false;
|
||||
}
|
||||
|
||||
// do not overwrite FETTec simulation's ESC telemetry data:
|
||||
SITL::SIM *sitl = AP::sitl();
|
||||
if (sitl != nullptr &&
|
||||
sitl->fetteconewireesc_sim.enabled()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (esc_telem == nullptr) {
|
||||
esc_telem = new AP_ESC_Telem_SITL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user