From 76028fc9d382bab7daada96f55497f35969ce09f Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Fri, 31 May 2013 14:31:56 +0900 Subject: [PATCH] Copter Motors: use _min_throttle in output_test --- libraries/AP_Motors/AP_MotorsMatrix.cpp | 2 +- libraries/AP_Motors/AP_MotorsTri.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/AP_Motors/AP_MotorsMatrix.cpp b/libraries/AP_Motors/AP_MotorsMatrix.cpp index e712e506e8..d4cf17d527 100644 --- a/libraries/AP_Motors/AP_MotorsMatrix.cpp +++ b/libraries/AP_Motors/AP_MotorsMatrix.cpp @@ -477,7 +477,7 @@ void AP_MotorsMatrix::output_test() for( j=0; jwrite(_motor_to_channel_map[j], _rc_throttle->radio_min + 100); + hal.rcout->write(_motor_to_channel_map[j], _rc_throttle->radio_min + _min_throttle); hal.scheduler->delay(300); hal.rcout->write(_motor_to_channel_map[j], _rc_throttle->radio_min); hal.scheduler->delay(2000); diff --git a/libraries/AP_Motors/AP_MotorsTri.cpp b/libraries/AP_Motors/AP_MotorsTri.cpp index 0d21f1d09a..b7192bbb8c 100644 --- a/libraries/AP_Motors/AP_MotorsTri.cpp +++ b/libraries/AP_Motors/AP_MotorsTri.cpp @@ -172,17 +172,17 @@ void AP_MotorsTri::output_test() hal.rcout->write(_motor_to_channel_map[AP_MOTORS_MOT_2], _rc_throttle->radio_min); hal.scheduler->delay(4000); - hal.rcout->write(_motor_to_channel_map[AP_MOTORS_MOT_1], _rc_throttle->radio_min + 100); + hal.rcout->write(_motor_to_channel_map[AP_MOTORS_MOT_1], _rc_throttle->radio_min + _min_throttle); hal.scheduler->delay(300); hal.rcout->write(_motor_to_channel_map[AP_MOTORS_MOT_1], _rc_throttle->radio_min); hal.scheduler->delay(2000); - hal.rcout->write(_motor_to_channel_map[AP_MOTORS_MOT_4], _rc_throttle->radio_min + 100); + hal.rcout->write(_motor_to_channel_map[AP_MOTORS_MOT_4], _rc_throttle->radio_min + _min_throttle); hal.scheduler->delay(300); hal.rcout->write(_motor_to_channel_map[AP_MOTORS_MOT_4], _rc_throttle->radio_min); hal.scheduler->delay(2000); - hal.rcout->write(_motor_to_channel_map[AP_MOTORS_MOT_2], _rc_throttle->radio_min + 100); + hal.rcout->write(_motor_to_channel_map[AP_MOTORS_MOT_2], _rc_throttle->radio_min + _min_throttle); hal.scheduler->delay(300); hal.rcout->write(_motor_to_channel_map[AP_MOTORS_MOT_1], motor_out[AP_MOTORS_MOT_1]);