Update to the text and small demo
This commit is contained in:
@@ -7,11 +7,15 @@
|
||||
# PROFILE single | industrial (default: industrial)
|
||||
# RATE_HZ T1 datagram rate (default: 500)
|
||||
# T2_RATE_HZ T2 uni stream rate (default: 5)
|
||||
# T3_RATE_HZ T3 bi stream rate (default: 2)
|
||||
# DEVICES number of devices (default: 5)
|
||||
# BUILD release | debug (default: release)
|
||||
# KEEP_MONITORING if 1, don't `docker compose down` on exit (default: 0)
|
||||
#
|
||||
# Note: T3 is substrate-initiated (actuator commands from automation_system).
|
||||
# In the `industrial` profile, the Presence waveform dips below threshold every
|
||||
# few seconds, triggering T3 Relay setpoints to the simulator and visible
|
||||
# Current-collapses on the Grafana dashboard. No simulator-side T3 knob.
|
||||
#
|
||||
# Example:
|
||||
# ./scripts/demo.sh
|
||||
# PROFILE=single RATE_HZ=100 DEVICES=20 ./scripts/demo.sh
|
||||
@@ -28,7 +32,6 @@ cd "$ROOT"
|
||||
PROFILE="${PROFILE:-industrial}"
|
||||
RATE_HZ="${RATE_HZ:-500}"
|
||||
T2_RATE_HZ="${T2_RATE_HZ:-5}"
|
||||
T3_RATE_HZ="${T3_RATE_HZ:-2}"
|
||||
DEVICES="${DEVICES:-5}"
|
||||
BUILD="${BUILD:-release}"
|
||||
KEEP_MONITORING="${KEEP_MONITORING:-0}"
|
||||
@@ -144,7 +147,7 @@ done
|
||||
# --- simulator ---
|
||||
TOTAL_SLOTS=$DEVICES
|
||||
if [[ "$PROFILE" == "industrial" ]]; then
|
||||
TOTAL_SLOTS=$((DEVICES * 5))
|
||||
TOTAL_SLOTS=$((DEVICES * 7))
|
||||
fi
|
||||
|
||||
step "Starting simulator (log: $SIM_LOG)"
|
||||
@@ -152,7 +155,6 @@ RUST_LOG=info "$SIMULATOR_BIN" \
|
||||
--profile "$PROFILE" \
|
||||
--rate-hz "$RATE_HZ" \
|
||||
--t2-rate-hz "$T2_RATE_HZ" \
|
||||
--t3-rate-hz "$T3_RATE_HZ" \
|
||||
--count 0 \
|
||||
--devices "$DEVICES" \
|
||||
>"$SIM_LOG" 2>&1 &
|
||||
@@ -208,7 +210,7 @@ ${BOLD}════════════════════════
|
||||
|
||||
${DIM}Config${RESET}
|
||||
profile $PROFILE
|
||||
rates T1=$RATE_HZ Hz · T2=$T2_RATE_HZ Hz · T3=$T3_RATE_HZ Hz
|
||||
rates T1=$RATE_HZ Hz · T2=$T2_RATE_HZ Hz (T3 fires from automation_system)
|
||||
devices $DEVICES → $TOTAL_SLOTS sensor entities expected
|
||||
build $BUILD
|
||||
|
||||
|
||||
Reference in New Issue
Block a user