diff options
author | Julian Oes <joes@student.ethz.ch> | 2012-09-26 14:29:47 +0200 |
---|---|---|
committer | Julian Oes <joes@student.ethz.ch> | 2012-09-26 14:29:47 +0200 |
commit | ac43a67a0ff8be62504e3398def6b1f6f0719e14 (patch) | |
tree | 4115cb89f64d68c28d2f962ed432b2a91de656c0 | |
parent | 201fdbc42c46bc9146a8cbf2434a98792d6d9f50 (diff) | |
download | px4-firmware-ac43a67a0ff8be62504e3398def6b1f6f0719e14.tar.gz px4-firmware-ac43a67a0ff8be62504e3398def6b1f6f0719e14.tar.bz2 px4-firmware-ac43a67a0ff8be62504e3398def6b1f6f0719e14.zip |
ardrone max motor output was slightly to high
-rw-r--r-- | apps/ardrone_interface/ardrone_motor_control.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/ardrone_interface/ardrone_motor_control.c b/apps/ardrone_interface/ardrone_motor_control.c index cbf9600a5..89ed183cc 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 */ |