#!/usr/bin/env bash # #152: is the AUTHENTIC torso-CENTER button (0x42) alive on the RIO/glass path # (key bridge OFF)? Cycle to Standard, deflect/release the twist axis, and # hold 0x42 during release windows. ctrCmd=1 while held + twist slewing to 0 # = route works (ticket becomes player education). ctrCmd stuck 0 = the # streamed 0x42 route is dead on glass and needs the forward implemented. 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 c42_a.log bt_expert_egg MP.EGG C42.EGG sed -i "s/^map=.*/map=grass/; s/^time=.*/time=day/; s/^vehicle=.*/vehicle=madcat/" C42.EGG ( export BT_MODECYCLE_EVERY=400 BT_TWIST_PULSE=150 export BT_BTNTEST=0x42,900,1150 BT_BTNTEST2=0x42,1500,1750 export BT_TORSO_LOG=1 BT_KEY_NOFOCUS=1 BT_KEY_BRIDGE=0 bt_launch c42_a.log C42.EGG 0x03 ) sleep 130 bt_kill_ours; sleep 2; taskkill //F //IM btl4.exe > /dev/null 2>&1; sleep 3 echo "============ RESULT ============" grep -a "\[mode\] control mode" c42_a.log | head -4 echo "--- ctrCmd seen (want some =1 during the 0x42 holds) ---" grep -ao "ctrCmd=[01]" c42_a.log | sort | uniq -c echo "--- twist trajectory around the first hold ---" grep -aE "twistpulse|ctrCmd=1" c42_a.log | head -8