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

ReadParamsExt, raw messages, fix byte order, codec startup #8

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

DeepSOIC
Copy link

@DeepSOIC DeepSOIC commented Jul 3, 2023

  • implement ReadParamsExt message (i was interested in encoder offsets; all other fields are untested)

  • decode all unknown messages as RawMessage(id, payload), so that users of the library can make use of the library even if the messages they are dealing with are not directly supported. Sending raw messages is also supported.

There is a caveat though: using simplebgc-rs to define these custom messages is tricky - one particular problem i bumped into was compiler errors when trying to use RollPitchYaw struct around my custom struct; i have worked around that by copy-pasting the definition of RollPitchYaw struct into my project.

See my sandbox project for a demo of how this can be used in practice.

  • allow the v2 stream decoder to start up on an already-running stream of data

This is critically important when restarting a program, when the previous launch has enabled streaming of some data from the gimbal.

  • add TargetPrecise and MixFollow AxisControlFlags to CMD_CONTROL bindings

DeepSOIC added 7 commits June 28, 2023 20:29
... by emitting/accepting a RawMessage when the message type is not implemented.

This makes it possible to extend this library from within a project that uses it, which is particularly important for handling commands with variable footprint, such as CMD_REALTIME_DATA_CUSTOM
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