AP_Motors_test: Adapt to test bench available

This commit is contained in:
Víctor Mayoral Vilches 2014-05-21 12:15:59 +02:00 committed by Andrew Tridgell
parent df14318bbd
commit d43c1cc544
1 changed files with 3 additions and 1 deletions

View File

@ -31,6 +31,7 @@
#include <AP_Vehicle.h>
#include <AP_ADC_AnalogSource.h>
#include <AP_Mission.h>
#include <AP_NavEKF.h>
const AP_HAL::HAL& hal = AP_HAL_BOARD_DRIVER;
@ -53,7 +54,8 @@ void setup()
// motor initialisation
motors.set_update_rate(490);
motors.set_frame_orientation(AP_MOTORS_X_FRAME);
// motors.set_frame_orientation(AP_MOTORS_X_FRAME);
motors.set_frame_orientation(AP_MOTORS_PLUS_FRAME);
motors.set_min_throttle(130);
motors.set_mid_throttle(500);
motors.Init(); // initialise motors