mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-24 09:38:29 -04:00
AP_HAL_ChibiOS: add support for SIM_OH_MASK (sim-on-hardware output enable mask
This commit is contained in:
parent
488509353a
commit
2913c8d9e9
@ -569,7 +569,9 @@ void RCOutput::write(uint8_t chan, uint16_t period_us)
|
|||||||
|
|
||||||
#if AP_SIM_ENABLED
|
#if AP_SIM_ENABLED
|
||||||
hal.simstate->pwm_output[chan] = period_us;
|
hal.simstate->pwm_output[chan] = period_us;
|
||||||
|
if (!(AP::sitl()->on_hardware_output_enable_mask & (1U<<chan))) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAL_WITH_IO_MCU
|
#if HAL_WITH_IO_MCU
|
||||||
|
Loading…
Reference in New Issue
Block a user