diff --git a/groundStation/scripts/bypass_kill_switch.sh b/groundStation/scripts/bypass_kill_switch.sh index 183df7b8e30d642e0bf92b8a0fbc7b1ef1949e7f..afd5e6b35dc8422a697e2768962aa50de934a12e 100755 --- a/groundStation/scripts/bypass_kill_switch.sh +++ b/groundStation/scripts/bypass_kill_switch.sh @@ -4,10 +4,18 @@ if [ -z "$1" ]; then echo "No argument supplied" exit 0 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 - ./setparam 37 0 $1 + ./setparam 13 0 $(( $1 + 1 )) sleep 0.4 - ./setparam 37 0 $(( $1 - 1 )) + ./setparam 13 0 $(( $1 - 1 )) sleep 0.4 done diff --git a/groundStation/scripts/take_off.sh b/groundStation/scripts/take_off.sh old mode 100644 new mode 100755 index ae559c6b4d8a29ac7adbb3443e7cdbd0ce951bd4..70b9642291695d555dd1b071c05c8b9e2c0a434c --- a/groundStation/scripts/take_off.sh +++ b/groundStation/scripts/take_off.sh @@ -1,11 +1,15 @@ #! /bin/bash -./setsource "T trim add" "summand 1" "zero" 0 -./setparam "Throttle trim" *wind up value here* - -sleep(1); - -./setsource "T trim add" "summand 1" "Altitude PID" "Correction" -./setparam "Throttle trim" *hover value here* - -./setparam "Alt Setpoint" 0 -0.3 +#./setsource "T trim add" "summand 1" "zero" 0 +./setsource 14 0 38 0 +#./setparam "Throttle trim" 0 135000 +./setparam 13 0 135000 + +sleep 2 + +#./setsource "T trim add" "summand 1" "Altitude PID" "Correction" +./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