-
Notifications
You must be signed in to change notification settings - Fork 8
Open Bot Brain primitives for motors + color sensor #285
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
Open
MaartenS11
wants to merge
22
commits into
main
Choose a base branch
from
feat/obb
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+786
−145
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…so resolves the conflict with motor c and the other motors! So now you can control all 4 motors at the same time!
…rd at all times without reset (Increases power consumption so should be disabled if power consumption is important, for example when just using open bot brain in a classroom)
…tbeat interval to 990ms instead of 1000
By doing so you could theoretically now have multiple uart sensors working at the same time.
…r arguments later + add stop_motor Also removed the brake argument on drive_motor, to stop the motor you now use the stop_motor primitive.
…(Seems to work correctly now?)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds the following primitives:
drive_motor
drive_motor_ms
drive_motor_degrees
stop_motor
setup_uart_sensor
color_sensor
These primitives are available on the Open Bot Brain board (we use
stm32l496g_disco
currently). On other Zephyr boards they are disabled (There is no configuration that describes how to use all the lego components with for example the Raspberry Pi Pico).Not perfect, but most of the logic for all the primitives is in separate files (the
Mindstorms
directory).