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

Add functionality to read and parse serial data from pod control #24

Closed
taesungh opened this issue Apr 18, 2024 · 3 comments · Fixed by #36
Closed

Add functionality to read and parse serial data from pod control #24

taesungh opened this issue Apr 18, 2024 · 3 comments · Fixed by #36
Assignees

Comments

@taesungh
Copy link
Member

taesungh commented Apr 18, 2024

In conjunction with UCI-HyperXite/hx9-control-system#35, we'll need the Pi Pico to be able to receive and process command messages from pod control running on the main Raspberry Pi.

  • Create a new function for operating the inverter which waits for a serial command and calls the function to output a PDM waveform based on the given control parameters (velocity and throttle)
  • Parse serial data according to the schema established as part of [Pod] Create abstraction for driving inverter board hx9-control-system#35
    • We might also want to provide some acknowledgement message back to pod control
  • We will need to decide whether to store the last received command or always wait for a new command
    • Forcing the inverter to wait for a command would be safer since the LIM would turn off if a connection fault occurs
    • However if the primary FSM tick rate is insufficient, we can also consider using an expiration time
@taesungh
Copy link
Member Author

taesungh commented May 3, 2024

Note: we can start implementing the protocol together with the pod-operation side, but we won't be able to actually test the signal output until we finish #12 and #20.

@taesungh
Copy link
Member Author

taesungh commented May 3, 2024

I forgot that in #3, we originally planned for the inverter control to accept the speed of the pod. We'll need to change the control parameters from frequency and amplitude to speed and throttle.

@taesungh
Copy link
Member Author

Amplitude control added in #29 and frequency relation added in #32. We'll also need throttle control from #33 before testing and might need a control parameter for phase depending on #31.

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 a pull request may close this issue.

2 participants