Turn the orin fan on full
It uses an un-measurable amount more power and cools the chip down quite
a bit more. We hit thermal limits on pi1 on the box of pi's (it was a
airflow problem, but more fan doesn't hurt).
Change-Id: I218e37f4934f1e3a78ad9c7fc7e89d59470854b5
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/aos/starter/starter.sh b/aos/starter/starter.sh
index 0215156..dc71cbd 100755
--- a/aos/starter/starter.sh
+++ b/aos/starter/starter.sh
@@ -10,10 +10,18 @@
ln -s /var/local/natinst/log/FRC_UserProgram.log /tmp/FRC_UserProgram.log
ln -s /var/local/natinst/log/FRC_UserProgram.log "${ROBOT_CODE}/FRC_UserProgram.log"
-elif [[ "$(hostname)" == "pi-"* || "$(hostname)" == "orin-"* ]]; then
+elif [[ "$(hostname)" == "pi-"* ]]; then
# We have systemd configured to handle restarting, so just exec.
export PATH="${PATH}:/home/pi/bin"
exec starterd --user=pi --purge_shm_base
+elif [[ "$(hostname)" == "orin-"* ]]; then
+ # We have systemd configured to handle restarting, so just exec.
+ export PATH="${PATH}:/home/pi/bin"
+
+ # Turn the fans up.
+ echo 255 > /sys/devices/platform/pwm-fan/hwmon/hwmon1/pwm1
+
+ exec starterd --user=pi --purge_shm_base
else
ROBOT_CODE="${HOME}/bin"
fi