AP_Motors: example sketch provides roll, pitch, yaw in -1 to +1 range

This commit is contained in:
Randy Mackay 2016-02-03 10:26:46 +09:00
parent 93597d152f
commit d4998089c8
1 changed files with 3 additions and 3 deletions

View File

@ -156,9 +156,9 @@ void stability_test()
pitch_in = rpy_tests[p];
yaw_in = rpy_tests[y];
throttle_in = throttle_tests[t]/1000.0f;
motors.set_pitch(roll_in);
motors.set_roll(pitch_in);
motors.set_yaw(yaw_in);
motors.set_pitch(roll_in/4500.0f);
motors.set_roll(pitch_in/4500.0f);
motors.set_yaw(yaw_in/4500.0f);
motors.set_throttle(throttle_in);
motors.set_desired_spool_state(AP_MotorsMulticopter::DESIRED_THROTTLE_UNLIMITED);
#if HELI_TEST == 0