Checkpoint - this is worth an AR.Drone flight test. Fixed thrust scaling in sensors for manual input, kind of fixed AR.Drone motor interface, very reliable now

This commit is contained in:
Lorenz Meier
2012-09-04 21:16:39 +02:00
parent 62682d805e
commit e503c15361
5 changed files with 115 additions and 71 deletions
+1 -1
View File
@@ -914,7 +914,7 @@ Sensors::ppm_poll()
if (manual_control.yaw > 1.0f) manual_control.yaw = 1.0f;
/* throttle input */
manual_control.throttle = (_rc.chan[_rc.function[THROTTLE]].scaled+1.0f)/2.0f;
manual_control.throttle = _rc.chan[_rc.function[THROTTLE]].scaled/2.0f;
if (manual_control.throttle < 0.0f) manual_control.throttle = 0.0f;
if (manual_control.throttle > 1.0f) manual_control.throttle = 1.0f;