Fix the index numbers and command max travel in the app for the drop servo.

This commit is contained in:
Simon Wilks
2014-08-14 16:43:49 +02:00
parent eabddaa615
commit 0c78794e57
2 changed files with 7 additions and 5 deletions
+5 -3
View File
@@ -58,12 +58,14 @@ Inputs to the mixer come from channel group 2 (payload), channels 0
M: 1
O: 10000 10000 0 -10000 10000
S: 2 4 10000 10000 0 -10000 10000
S: 2 0 10000 10000 0 -10000 10000
M: 1
O: 10000 10000 0 -10000 10000
S: 2 5 10000 10000 0 -10000 10000
S: 2 1 10000 10000 0 -10000 10000
M: 1
O: 10000 10000 0 -10000 10000
S: 2 6 10000 10000 0 -10000 10000
S: 2 2 -10000 -10000 0 -10000 10000
+2 -2
View File
@@ -267,9 +267,9 @@ BottleDrop::drop()
}
if (_drop && _doors_opened != 0 && hrt_elapsed_time(&_doors_opened) < 500000) {
_actuators.control[2] = -0.5f;
_actuators.control[2] = -1.0f;
} else {
_actuators.control[2] = 0.5f;
_actuators.control[2] = 1.0f;
}
_drop_time = hrt_absolute_time();