-
Notifications
You must be signed in to change notification settings - Fork 111
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
RSDK-1024-linear-acceleration #1721
Conversation
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.
My 6 comments are really, like, 3 suggestions repeated twice each.
For sensors that implement the new method and don't just return an Unimplemented error, you should also modify Properties()
to indicate that they support it.
When you're ready to try this out on actual hardware, I'd be happy to lend you a breadboard with ADXL and MPU accelerometers wired up (or maybe you already have your own).
I just realized that no one was tagged as a reviewer yet on this! Sorry if I jumped the gun and you weren't ready for a review yet. 😖 |
Will handle vue changes in a separate PR. |
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.
Oops! Sorry I forgot about this part before! Now that you've added a new boolean to movementsensor.Properties
, we need to set it for the sensors that support it.
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.
The ADXL and MPU sensors still need their Properties updated.
The rule is that if you do something besides returning movementsensor.ErrMethodUnimplementedLinearVelocity
, that's when you support linear acceleration.
|
Adding linear acceleration to movementsensor