Rover: setup pwm esc scaling

This commit is contained in:
Andrew Tridgell 2014-11-20 18:32:08 +11:00
parent 4132b53541
commit 008dc91a15

View File

@ -12,6 +12,10 @@ static void set_control_channels(void)
// set rc channel ranges
channel_steer->set_angle(SERVO_MAX);
channel_throttle->set_angle(100);
// setup correct scaling for ESCs like the UAVCAN PX4ESC which
// take a proportion of speed.
hal.rcout->set_esc_scaling(channel_throttle->radio_min, channel_throttle->radio_max);
}
static void init_rc_in()