Skip to content

Commit 49732e8

Browse files
Fix simulator: JS module registration, rotation direction, and starter code
- Fix aidriver JS module registration: use Sk.builtinFiles instead of non-existent Sk.builtinModules so Skulpt 1.2.0 loads the JS module with proper suspension support and real ultrasonic sensor readings - Fix call order: register modules AFTER Sk.configure() to prevent builtinFiles from being reset - Fix processCommandQueue: remove re-entrant callsimOrSuspend into Python interpreter, read commands from AIDriverStub queue instead - Fix rotate_left/rotate_right: swap wheel speed assignments to match real hardware where right motor is physically flipped - Fix collectTrace: save/restore JS module around trace collection - Update Challenge 3 starter code to use simpler distance check pattern - Bump version numbers for cache busting
1 parent f0ef666 commit 49732e8

3 files changed

Lines changed: 143 additions & 161 deletions

File tree

0 commit comments

Comments
 (0)