Sub: Remove unnecessary cast in init_rc_out

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
Patrick José Pereira 2017-11-18 22:17:11 -02:00 committed by jaxxzer
parent b7a293ca5f
commit b724884344
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ void Sub::init_rc_out()
{
motors.set_update_rate(g.rc_speed);
motors.set_loop_rate(scheduler.get_loop_rate_hz());
motors.init((AP_Motors::motor_frame_class)g.frame_configuration.get(), (AP_Motors::motor_frame_type)0);
motors.init((AP_Motors::motor_frame_class)g.frame_configuration.get(), AP_Motors::motor_frame_type::MOTOR_FRAME_TYPE_PLUS);
motors.set_throttle_range(channel_throttle->get_radio_min(), channel_throttle->get_radio_max());
// enable output to motors