-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Motor Blocks #17
Comments
@joernalraun can you specify what blocks we need? |
@haithembelhaj as we cannot offer the MakeCode user add-on option for the labels, would it be possible to also add the previous two blocks at the end of all Calliope mini blocks for motors/cars? When everything else is done and there is still time/fun to do so? ;) |
@haithembelhaj We created a HEX file today for the Motors: calliope-edu/pxt-calliope@0aa9368 Calliope-More-Motors.zip It listens on It then awaits in
With values for direction and speed in:
unserInput = -50
direction = (unserInput < 0) ? 1 : 0
speed = Math.abs(unserInput) The MakeCode implementation of the makecode blocks is here for refference: https://github.com/microsoft/pxt-calliope/blob/03e928aec8b7ac2f34738c95f8e8e75a0fa40bcc/libs/core-mini-codal/motors.ts#L45 |
@Amerlander I added the block following the specs but without success sadly :( |
Your code locks fine. I'll check if there is something going wrong with the hex file. |
The Motor should be part of the first command. I changed it in scsratch-vm: calliope-edu/scratch-vm@1aab934 |
There was an issue in the hex file too. It now works with the changes from above and this new hex file: |
amazing! I updated the VM by removing the logs :) |
If you only updated the VM you could just re-run the Job by opening the last job and click on the re-run-button on the top right: That should rebuild the page with the current vm without having to commit to the gui repo. |
Right now the block is english, can this be translated as well and we need motor in it "set motor"... |
@joernalraun translated and deployed :) |
We plan to have motor blocks for the Motor Board and for the Motion kit.
Current implementation in HEX File:
data[0]
data[1]
anddata[2]
The text was updated successfully, but these errors were encountered: