Skip to content
Snippets Groups Projects
Commit 319ada56 authored by ucart's avatar ucart
Browse files

working take_off routine

parent 16b4df61
No related branches found
No related tags found
No related merge requests found
...@@ -4,10 +4,18 @@ if [ -z "$1" ]; then ...@@ -4,10 +4,18 @@ if [ -z "$1" ]; then
echo "No argument supplied" echo "No argument supplied"
exit 0 exit 0
fi fi
cd .. #cd ..
./setsource 35 1 38 0
./setsource 35 2 38 0
./setsource 35 3 38 0
./setsource 35 0 13 0
while true ; do while true ; do
./setparam 37 0 $1 ./setparam 13 0 $(( $1 + 1 ))
sleep 0.4 sleep 0.4
./setparam 37 0 $(( $1 - 1 )) ./setparam 13 0 $(( $1 - 1 ))
sleep 0.4 sleep 0.4
done done
#! /bin/bash #! /bin/bash
./setsource "T trim add" "summand 1" "zero" 0 #./setsource "T trim add" "summand 1" "zero" 0
./setparam "Throttle trim" *wind up value here* ./setsource 14 0 38 0
#./setparam "Throttle trim" 0 135000
sleep(1); ./setparam 13 0 135000
./setsource "T trim add" "summand 1" "Altitude PID" "Correction" sleep 2
./setparam "Throttle trim" *hover value here*
#./setsource "T trim add" "summand 1" "Altitude PID" "Correction"
./setparam "Alt Setpoint" 0 -0.3 ./setsource 14 0 8 0
#./setparam "Throttle trim" 0 145000
./setparam 13 0 150000
#./setparam "Alt Setpoint" 0 -0.3
./setparam 11 0 -0.5
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment