AP_ServoRelayEvents: fixed trim bug

thanks to Buzz for noticing!
This commit is contained in:
Andrew Tridgell 2017-01-09 10:22:56 +11:00
parent cb4ebdd7b4
commit c133b515e0

View File

@ -113,7 +113,7 @@ void AP_ServoRelayEvents::update_events(void)
case EVENT_TYPE_SERVO:
hal.rcout->enable_ch(channel-1);
if (repeat & 1) {
hal.rcout->write(channel-1, SRV_Channels::srv_channel(channel-1)->get_output_pwm());
hal.rcout->write(channel-1, SRV_Channels::srv_channel(channel-1)->get_trim());
} else {
hal.rcout->write(channel-1, servo_value);
}