Skip to content

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
wants to merge 22 commits into
base: main
Choose a base branch
from

Conversation

MaartenS11
Copy link
Member

@MaartenS11 MaartenS11 commented Dec 11, 2024

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).

…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)
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.
@MaartenS11 MaartenS11 marked this pull request as ready for review April 29, 2025 12:51
@MaartenS11 MaartenS11 requested a review from tolauwae April 29, 2025 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant