#!/usr/bin/env bash # ========================================================================= # #173 DECISIVE EXPERIMENT -- does boosting coolant loop 5's valve sustain # seek-4 on a Vulture, as the equilibrium solver claims, or does it still # cook as the field reported ("loop 5 maxed and couldn't shed")? # # Rig: the m173 measurement pattern (night16 myo173.sh) -- solo expert # vulture, grass/day, BT_FORCE_SEEK=3 (seek-4) + BT_AUTODRIVE=1.0 + # BT_FORCE_TURN=0.12 (stays on-map near top speed), myomer/condenser temp # receipts under the heat-log envs. # # Valve control: the NEW BT_VALVE5=N hook (mech4.cpp) presses Condenser5's # MoveValve N times, spaced 30 frames, starting frame 300. Every press is # receipted by the handler's unconditional "[valve] Condenser5 valve -> # detent D" line, and BT_VALVE_LOG receipts the zero-sum share redistribute # ("[valve] condenser#5 valveState=V flow=F (total=T)") -- the landed # detent is PROVEN, not assumed. # # Three measurement runs, ~150s sustained seek-4 cruise each, identical # otherwise: # A) balanced (no presses) -- expected: degradation ~14s, eq ~1800 # B) BT_VALVE5=2 (detent 1->5->50) -- THE QUESTION: stays under 1000? # C) BT_VALVE5=3 (wrap to detent 0) -- expected WORSE than A (share 0) # Plus one visual run: # D) idle mech, 3 presses spaced 600 frames, BT_SHOT_EVERY=90 -- captures # the Heat MFD valve slider at each detent 1/5/50/0 (indicator audit). # ========================================================================= set -x . /c/git/bt411/scratchpad/night6/bench_common.sh cd /c/git/bt411/content || exit 1 taskkill //F //IM btl4.exe > /dev/null 2>&1 sleep 2 rm -f vlv_*.png run_one () { # run_one [extra env pairs...] local TAG=$1 SECS=$2; shift 2 bt_expert_egg MP.EGG M173V.EGG sed -i "s/^map=.*/map=grass/; s/^time=.*/time=day/; 0,/^vehicle=.*/s//vehicle=vulture/" M173V.EGG local LOG=m173_${TAG}.log rm -f "$LOG" ( export BT_MYO_LOG=1 BT_HEAT_LOG=1 BT_SPEC_LOG=1 BT_MYOMERS_LOG=1 BT_VALVE_LOG=1 for kv in "$@"; do export "$kv"; done bt_launch "$LOG" M173V.EGG 0x03 ) sleep "$SECS" bt_kill_ours sleep 3 taskkill //F //IM btl4.exe > /dev/null 2>&1 sleep 2 } DRIVE="BT_FORCE_SEEK=3 BT_AUTODRIVE=1.0 BT_FORCE_TURN=0.12" run_one vul_A_bal 165 $DRIVE run_one vul_B_d50 165 $DRIVE BT_VALVE5=2 run_one vul_C_d0 165 $DRIVE BT_VALVE5=3 run_one vul_D_shot 100 BT_VALVE5=3 BT_VALVE5_AT=900 BT_VALVE5_SPACING=600 \ BT_SHOT_EVERY=90 BT_SHOT_PREFIX=vlv echo "=================== m173v RUNS DONE ===================" for f in m173_vul_A_bal.log m173_vul_B_d50.log m173_vul_C_d0.log m173_vul_D_shot.log; do echo "--- $f" grep -ac "myotemp" "$f" 2>/dev/null grep -a "\[valve" "$f" 2>/dev/null | head -40 done ls vlv_*.png 2>/dev/null | head