Make box of pi's startup better
Stop waiting until all the pi's are pingable (since they aren't all
there), and don't start autonomous since it doesn't exist yet.
Change-Id: Ie5fa29698e05bf6091fb1f189cc2eadd631fcb70
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/y2023/BUILD b/y2023/BUILD
index 6ba1392..1d57526 100644
--- a/y2023/BUILD
+++ b/y2023/BUILD
@@ -16,7 +16,6 @@
],
data = [
":aos_config",
- ":message_bridge_client.sh",
"//y2023/constants:constants.json",
"//y2023/www:www_files",
],
diff --git a/y2023/message_bridge_client.sh b/y2023/message_bridge_client.sh
deleted file mode 100755
index 733905e..0000000
--- a/y2023/message_bridge_client.sh
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/bin/bash
-
-while true;
-do
- ping -c 1 pi1 -W 1 && break;
- sleep 1
-done
-while true;
-do
- ping -c 1 pi2 -W 1 && break;
- sleep 1
-done
-while true;
-do
- ping -c 1 pi3 -W 1 && break;
- sleep 1
-done
-while true;
-do
- ping -c 1 pi4 -W 1 && break;
- sleep 1
-done
-while true;
-do
- ping -c 1 pi5 -W 1 && break;
- sleep 1
-done
-while true;
-do
- ping -c 1 pi6 -W 1 && break;
- sleep 1
-done
-while true;
-do
- ping -c 1 roborio -W 1 && break;
- sleep 1
-done
-
-echo Pinged
-
-exec message_bridge_client "$@"
diff --git a/y2023/y2023_imu.json b/y2023/y2023_imu.json
index 9636003..6940479 100644
--- a/y2023/y2023_imu.json
+++ b/y2023/y2023_imu.json
@@ -311,7 +311,7 @@
"applications": [
{
"name": "message_bridge_client",
- "executable_name": "message_bridge_client.sh",
+ "executable_name": "message_bridge_client",
"user": "pi",
"nodes": [
"imu"
diff --git a/y2023/y2023_pi_template.json b/y2023/y2023_pi_template.json
index c722110..27fccfa 100644
--- a/y2023/y2023_pi_template.json
+++ b/y2023/y2023_pi_template.json
@@ -339,7 +339,6 @@
"name": "message_bridge_client",
"args": ["--rt_priority=16"],
"user": "pi",
- "executable_name": "message_bridge_client.sh",
"nodes": [
"pi{{ NUM }}"
]
diff --git a/y2023/y2023_roborio.json b/y2023/y2023_roborio.json
index d0b2251..572aadc 100644
--- a/y2023/y2023_roborio.json
+++ b/y2023/y2023_roborio.json
@@ -484,6 +484,7 @@
{
"name": "autonomous_action",
"executable_name": "autonomous_action",
+ "autostart": false,
"nodes": [
"roborio"
]
@@ -498,7 +499,7 @@
},
{
"name": "roborio_message_bridge_client",
- "executable_name": "message_bridge_client.sh",
+ "executable_name": "message_bridge_client",
"args": ["--rt_priority=16"],
"nodes": [
"roborio"