Browse Source

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

apm_2208
Peter Barker 3 years ago committed by Andrew Tridgell
parent
commit
2913c8d9e9
  1. 4
      libraries/AP_HAL_ChibiOS/RCOutput.cpp

4
libraries/AP_HAL_ChibiOS/RCOutput.cpp

@ -569,7 +569,9 @@ void RCOutput::write(uint8_t chan, uint16_t period_us) @@ -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…
Cancel
Save