AP_ServoRelayEvents: fixed trim bug
thanks to Buzz for noticing!
This commit is contained in:
parent
cb4ebdd7b4
commit
c133b515e0
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user