| 129 | // --------------------------------------------------------------------------- |
| 130 | |
| 131 | async function testByteZero(): Promise<void> { |
| 132 | console.log("\n=== A. DRIVE pan @ byte 0x00 (never sent before) ==="); |
| 133 | await position(-60, 0); |
| 134 | driveRaw(0x00, 0x02, 0x00, 0x03); |
| 135 | await sleep(1000); |
| 136 | const frames = await capture(2.5); |
| 137 | stop(); |
| 138 | const dps = cruiseDps(frames); |
| 139 | console.log(` cruise: ${dps.toFixed(2)} °/s ${dps < 0.2 ? "(no motion — byte 0 is a no-op or stop)" : dps < 7 ? "*** SLOWER THAN FLOOR — new lever! ***" : "(same/faster than byte 1 — dead end)"}`); |
| 140 | } |
| 141 | |
| 142 | async function testRelative(): Promise<void> { |
| 143 | console.log("\n=== B. RELATIVE move (06 03) at low speed bytes ==="); |