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

How to use? #6

Open
DeepSOIC opened this issue Jun 22, 2023 · 1 comment
Open

How to use? #6

DeepSOIC opened this issue Jun 22, 2023 · 1 comment

Comments

@DeepSOIC
Copy link

Hey! We are working on an insect tracking project, and this piece of code looks useful to us. Our software is in Rust, but I am quite bad at Rust... Can you provide some example code?

I'm interested in:

  • sending out CMD_CONTROL messages to the gimbal over usb
  • subscribing for realtime data stream (encoder and imu angle data in particular) (CMD_DATA_STREAM_INTERVAL)
  • parsing the incoming stream of encoder/imu data (CMD_REALTIME_DATA_CUSTOM)
  • fetching some parameters (encoder offsets for example, found in CMD_READ_PARAMS_EXT)

An example with just one thing should hopefully be enough for me to figure out the rest.

@DeepSOIC
Copy link
Author

seems like this is the example i need:

let (msg, read) = OutgoingCommand::from_bytes(&packet[..])?;

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