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

Set up USB serial parsing of velocity and throttle #36

Merged
merged 4 commits into from
May 27, 2024

Conversation

samderanova
Copy link
Contributor

Resolves #24.

Changes

  • Create new LimControlMessage struct to encapsulate the data in messages received over serial communication
  • Add new function read_control_message to parse the message into velocity and throttle
  • Call the above function to parse velocity and throttle and pass them into calculate_frequency

Note: Both stdio_init_all and a while loop to check whether a USB cable is connected were added in order for the serial communication to work properly.

@samderanova samderanova requested a review from taesungh May 27, 2024 21:27
@samderanova samderanova linked an issue May 27, 2024 that may be closed by this pull request
src/main.cpp Outdated Show resolved Hide resolved
include/pod_communication.hpp Outdated Show resolved Hide resolved
@samderanova samderanova requested a review from taesungh May 27, 2024 21:48
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.

Add functionality to read and parse serial data from pod control
2 participants