diff --git a/libraries/AP_HAL_PX4/RCOutput.cpp b/libraries/AP_HAL_PX4/RCOutput.cpp index 57f3abe659..506994fff6 100644 --- a/libraries/AP_HAL_PX4/RCOutput.cpp +++ b/libraries/AP_HAL_PX4/RCOutput.cpp @@ -73,6 +73,7 @@ void PX4RCOutput::init() // ensure not to write zeros to disabled channels for (uint8_t i=0; i < PX4_NUM_OUTPUT_CHANNELS; i++) { _period[i] = PWM_IGNORE_THIS_CHANNEL; + _last_sent[i] = PWM_IGNORE_THIS_CHANNEL; } } @@ -229,6 +230,7 @@ void PX4RCOutput::enable_ch(uint8_t ch) _enabled_channels |= (1U<