Make a launch script that runs serial_waiter before target_sender
Modify the deploy script to build and push code the camera.
Change-Id: Ibb4fdf955c06ab418efe9d4ee0a07e6735ef985f
diff --git a/y2019/vision/tools/deploy.sh b/y2019/vision/tools/deploy.sh
index 4ad926f..ff3ee01 100755
--- a/y2019/vision/tools/deploy.sh
+++ b/y2019/vision/tools/deploy.sh
@@ -1,4 +1,12 @@
#!/bin/sh
+echo "Building executables"
+readonly BAZEL_OPTIONS="-c opt --cpu=armhf-debian"
+readonly BAZEL_BIN="$(bazel info ${BAZEL_OPTIONS} bazel-bin)"
+
+bazel build ${BAZEL_OPTIONS} \
+ //y2019/vision:target_sender \
+ //y2019/vision:serial_waiter
+
echo "Mount jevois ..."
./jevois-cmd usbsd
@@ -11,6 +19,11 @@
echo "Copying files ..."
cp ./austin_cam.sh /media/$USER/JEVOIS/
+cp ./launch.sh /media/$USER/JEVOIS/deploy/
+
+cp "${BAZEL_BIN}/y2019/vision/target_sender" \
+ "${BAZEL_BIN}/y2019/vision/serial_waiter" \
+ /media/$USER/JEVOIS/deploy/
echo "Unmount sd card ..."
umount /media/$USER/JEVOIS