You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 13, 2025. It is now read-only.
TL;DR: Control packets are sent during start up that inconsistently make servos and cause unwanted behaviour in builds, but cannot be influenced by the coder since it happens before the first line of user code is run. Simplest solution might be to remove these?
During jacdac's start up procedure for the servos it's sending a control packet to turn on and move the servo to 0°. This can happen before it reads the servo range which makes the zero point something else.
Could also be considered a feature request?
TL;DR: Control packets are sent during start up that inconsistently make servos and cause unwanted behaviour in builds, but cannot be influenced by the coder since it happens before the first line of user code is run. Simplest solution might be to remove these?
During jacdac's start up procedure for the servos it's sending a control packet to turn on and move the servo to 0°. This can happen before it reads the servo range which makes the zero point something else.
The
sync()at L26 in https://github.com/microsoft/pxt-jacdac/blob/master/servo-server/server.microbit.ts seems to be the culprit, since there is no check to see if roles are assigned or start up is complete.Would delaying any
writePinuntil after init be possible?