-
Notifications
You must be signed in to change notification settings - Fork 0
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
Create inverter board abstraction to send velocity and throttle to Raspberry Pi Pico #83
Conversation
7c6f831
to
15cf281
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good functionally as verified in lab; minor organizational notes.
- Extract arguments to Uart::with_path to constants - Simplify send_control to use format! rather than string concatenation
32af343
to
ebecb6a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still unsure if we're having a single or multiple Picos, but works for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, does this need any functionality in FSM?
Eventually, yes. We'll want to be able to control velocity and throttle from the FSM. In the meantime, though, @taesungh and I will be working on inverter-control#37 to improve the communication between the Pi and Pico(s). |
Resolves #35.
Changes
InverterBoard
structsend_control
method to send a velocity and throttle to a Raspberry Pi Pico via UART serial communication over/dev/ttyACM0
(i.e. a USB Type A port on the Raspberry Pi)Testing
hx9-control/pod-operation
withcargo build --release
, ensuring that it is being compiled to theaarch64
(Raspberry Pi) architecturetarget/aarch64-unknown-linux-gnu/release/pod-operation
to the Raspberry Pipod-operation
executable and observe the waveform on the oscilloscope or connect an LED to the pin outputting the waveform and observe it blinking