From ac43a67a0ff8be62504e3398def6b1f6f0719e14 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Wed, 26 Sep 2012 14:29:47 +0200 Subject: [PATCH] ardrone max motor output was slightly to high --- apps/ardrone_interface/ardrone_motor_control.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/ardrone_interface/ardrone_motor_control.c b/apps/ardrone_interface/ardrone_motor_control.c index cbf9600a59..89ed183ccd 100644 --- a/apps/ardrone_interface/ardrone_motor_control.c +++ b/apps/ardrone_interface/ardrone_motor_control.c @@ -372,7 +372,7 @@ void ardrone_mixing_and_output(int ardrone_write, const struct actuator_controls const float min_thrust = 0.02f; /**< 2% minimum thrust */ const float max_thrust = 1.0f; /**< 100% max thrust */ - const float scaling = 512.0f; /**< 100% thrust equals a value of 512 */ + const float scaling = 500.0f; /**< 100% thrust equals a value of 500 which works, 512 leads to cutoff */ const float min_gas = min_thrust * scaling; /**< value range sent to motors, minimum */ const float max_gas = max_thrust * scaling; /**< value range sent to motors, maximum */