AP_HAL_ChibiOS: add support for SIM_OH_MASK (sim-on-hardware output enable mask

This commit is contained in:
Peter Barker 2022-05-23 15:11:06 +10:00 committed by Andrew Tridgell
parent 488509353a
commit 2913c8d9e9

View File

@ -569,7 +569,9 @@ void RCOutput::write(uint8_t chan, uint16_t period_us)
#if AP_SIM_ENABLED
hal.simstate->pwm_output[chan] = period_us;
if (!(AP::sitl()->on_hardware_output_enable_mask & (1U<<chan))) {
return;
}
#endif
#if HAL_WITH_IO_MCU