Plane: try left/right throttle to init ESC scaling

Without this, twin motor planes with DroneCAN ESCs need to set a
dummy throttle channel for scale_esc_to_unity to work.
This commit is contained in:
Bob Long 2024-07-23 00:02:27 +10:00 committed by Andrew Tridgell
parent 8e707ef4e2
commit a5c8b03925
1 changed files with 2 additions and 0 deletions

View File

@ -58,6 +58,8 @@ void Plane::set_control_channels(void)
// setup correct scaling for ESCs like the UAVCAN ESCs which
// take a proportion of speed. For quadplanes we use AP_Motors
// scaling
g2.servo_channels.set_esc_scaling_for(SRV_Channel::k_throttleLeft);
g2.servo_channels.set_esc_scaling_for(SRV_Channel::k_throttleRight);
g2.servo_channels.set_esc_scaling_for(SRV_Channel::k_throttle);
}
}