Upgrade CTRE libraries for 2022
CTRE is now releasing shared libraries, so things got a bit more
difficult. Deploy those shared libraries and link them into place.
The code starts up with this, but I haven't actually tried interacting
with a Falcon. That'll come soon enough.
Change-Id: Ia332fb614089044758854766ba1db2b5ecc8f00e
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/aos/starter/starter.sh b/aos/starter/starter.sh
index f18dfda..d5812c2 100755
--- a/aos/starter/starter.sh
+++ b/aos/starter/starter.sh
@@ -5,6 +5,12 @@
ROBOT_CODE="/home/admin/robot_code"
+ # Get the CTRE libraries in the shared library search path
+ for f in $(ls *.so);
+ do
+ ln -f -s /home/admin/robot_code/$f /usr/local/frc/third-party/lib/$f
+ done
+
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-"* ]]; then