Fixed a bunch of issues in the arming state machine for multirotors, arming / disarming works fine now. Porting of various processes needed

This commit is contained in:
Lorenz Meier
2012-08-22 14:35:22 +02:00
parent 44ff4d4ee2
commit fa9f145b08
7 changed files with 285 additions and 59 deletions
+1 -1
View File
@@ -832,7 +832,7 @@ int sensors_thread_main(int argc, char *argv[])
if (manual_control.yaw > 1.0f) manual_control.yaw = 1.0f;
/* throttle input */
manual_control.throttle = rc.chan[rc.function[THROTTLE]].scaled/2.0f;
manual_control.throttle = (rc.chan[rc.function[THROTTLE]].scaled+1.0f)/2.0f;
if (manual_control.throttle < 0.0f) manual_control.throttle = 0.0f;
if (manual_control.throttle > 1.0f) manual_control.throttle = 1.0f;