From a31fa857d1a520552f449957213526386caa3c34 Mon Sep 17 00:00:00 2001
From: ucart <ucart_groundstation@iastate.edu>
Date: Fri, 31 Mar 2017 21:50:45 -0500
Subject: [PATCH] created a couple of quick ways to run motor tests

---
 groundStation/scripts/bypass_kill_switch.sh |  8 ++++++++
 groundStation/scripts/parameterize.sh       | 10 ++++++++++
 2 files changed, 18 insertions(+)
 create mode 100755 groundStation/scripts/bypass_kill_switch.sh
 create mode 100755 groundStation/scripts/parameterize.sh

diff --git a/groundStation/scripts/bypass_kill_switch.sh b/groundStation/scripts/bypass_kill_switch.sh
new file mode 100755
index 000000000..b1061e271
--- /dev/null
+++ b/groundStation/scripts/bypass_kill_switch.sh
@@ -0,0 +1,8 @@
+#! /bin/bash
+cd ..
+while true ; do
+	./setparam 37 0 $1
+	sleep 0.4
+	./setparam 37 0 $(( $1 - 1 ))
+	sleep 0.4
+done
diff --git a/groundStation/scripts/parameterize.sh b/groundStation/scripts/parameterize.sh
new file mode 100755
index 000000000..591656810
--- /dev/null
+++ b/groundStation/scripts/parameterize.sh
@@ -0,0 +1,10 @@
+cd ..
+./addnode 0 "Zero"
+./setparam "zero" 0 0
+./setsource "signal mixer" "pitch" "zero" 0
+./setsource "signal mixer" "roll" "zero" 0
+./setsource "signal mixer" "yaw" "zero" 0
+./addnode 0 "PWM_VAL"
+./setparam "pwm_val" 0 100000
+./setsource "signal mixer" "throttle" "pwm_val" 0
+
-- 
GitLab