Skip to content
Snippets Groups Projects
Commit 352823a6 authored by dawehr's avatar dawehr
Browse files

Merge branch 'master' of git.ece.iastate.edu:danc/MicroCART_17-18

parents 1b88c5de a5e621d9
No related branches found
No related tags found
No related merge requests found
#! /bin/bash #! /bin/bash
#./setsource "T trim add" "summand 1" "zero" 0 #./setsource "T trim add" "summand 1" "zero" 0
./setsource 14 0 45 0 ./setsource 14 0 46 0
#./setparam "Throttle trim" 0 135000 #./setparam "Throttle trim" 0 135000
./setparam 13 0 135000 ./setparam 13 0 135000
...@@ -13,4 +13,4 @@ sleep 2 ...@@ -13,4 +13,4 @@ sleep 2
#./setparam "Throttle trim" 0 145000 #./setparam "Throttle trim" 0 145000
./setparam 13 0 150000 ./setparam 13 0 150000
#./setparam "Alt Setpoint" 0 -0.88 #./setparam "Alt Setpoint" 0 -0.88
./setparam 11 0 -0.88 ./setparam 11 0 -0.5
#! /bin/bash #! /bin/bash
cut_off="-0.2" cut_off="-0.25"
regex='[+-]?[0-9]+\.?[0-9]*$' regex='[+-]?[0-9]+\.?[0-9]*$'
alt="$(echo "$(./getparam 33 0)" | grep -Eo "$regex")" alt="$(echo "$(./getparam 'VRPN Alt' 0)" | grep -Eo "$regex")"
while awk 'BEGIN { if ('$alt'>='$cut_off') {exit 1}}'; do while awk 'BEGIN { if ('$alt'>='$cut_off') {exit 1}}'; do
alt="$(echo "$(./getparam 33 0)" | grep -Eo "$regex")" alt="$(echo "$(./getparam 'VRPN Alt' 0)" | grep -Eo "$regex")"
./setparam 11 0 $( bc <<< "$alt - 0.01") ./setparam 'Alt Setpoint' 0 $( bc <<< "$alt + 0.1")
echo "$alt too high" echo "$alt too high"
sleep .5 sleep .5
done done
#./setparam "Throttle trim" 0 0 #./setparam "Throttle trim" 0 0
./setparam 13 0 0 ./setparam 'Throttle trim' 0 0
#./setsource "T trim add" "summand 1" "zero" 0 #./setsource "T trim add" "summand 1" "zero" 0
./setsource 14 0 45 0 ./setsource 'T trim add' 'summand 1' 'zero' 0
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