mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -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
|
||||
hal.simstate->pwm_output[chan] = period_us;
|
||||
return;
|
||||
if (!(AP::sitl()->on_hardware_output_enable_mask & (1U<<chan))) {
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if HAL_WITH_IO_MCU
|
||||
|
Loading…
Reference in New Issue
Block a user