-
-
Notifications
You must be signed in to change notification settings - Fork 81
pybricks/ev3devices: Enable remaining device support #345
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
Conversation
dlech
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If they compile, I would expect the gyro and ultrasonic sensor to work as well since they are also UART sensors.
This compiles, and IR distance measurement appears to be working correctly. Ultrasonic sensors and gyro have not been manually tested but are expected to work as they share the common UART protocol handling.
|
I've enabled all the |
| extern const mp_obj_type_t pb_type_ev3devices_InfraredSensor; | ||
| extern const mp_obj_type_t pb_type_ev3devices_GyroSensor; | ||
| extern const mp_obj_type_t pb_type_ev3devices_UltrasonicSensor; | ||
| extern const mp_obj_type_t pb_type_ev3devices_GyroSensor; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why changing the order?
|
These haven't been updated to the async API yet, so they haven't been enabled yet. I'll see if I can get around to the InfraredSensor soon so you have something to test with 🤖 The gyro sensor needs some work too. I've already enabled the necessary quirks at the protocol level, but haven't exposed them yet. It's on my list 🙂 Thanks! |
|
For now you can do: |
|
Have flashed (curious as I am) on the EV3: Tried 3 sensors.
|
|
Thanks Bert. We'll get there pretty soon! 😄 |
As mentioned on the call earlier today, I decided to test if this module was already working or not. It would appear that it is, at least for basic distance measurements. I don't have a remote or any way to test the other functionality,