Skip to content
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

APM-specific decoding of bitmasks? #2

Open
robinhilliard opened this issue May 20, 2021 · 0 comments
Open

APM-specific decoding of bitmasks? #2

robinhilliard opened this issue May 20, 2021 · 0 comments

Comments

@robinhilliard
Copy link
Contributor

robinhilliard commented May 20, 2021

Common messages like SetMode aren't aware of APM specific enums used in the custom_mode field. Is there a neat way we could transparently handle this sort of decoding for library users depending on vehicle type eg:
iex>2 |> APM.unpack_bitmask(:plane_mode, &APM.decode/2) #MapSet<[:plane_mode_stabilize]>

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

No branches or pull requests

1 participant