MCPcopy Create free account
hub / github.com/cpaczek/skylight / testByteZero

Function testByteZero

tracker/scripts/slow-limits.ts:131–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

129// ---------------------------------------------------------------------------
130
131async 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
142async function testRelative(): Promise<void> {
143 console.log("\n=== B. RELATIVE move (06 03) at low speed bytes ===");

Callers 1

mainFunction · 0.85

Calls 6

cruiseDpsFunction · 0.85
positionFunction · 0.70
driveRawFunction · 0.70
sleepFunction · 0.70
captureFunction · 0.70
stopFunction · 0.70

Tested by

no test coverage detected