-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Most of our robots have a power distribution board on them, yet we don't have the c++ code to communicate with it. This issue details how we might go about it.
At a high level I propose an implementation that looks something between how we handle imu data and how we communicate with the moteus
- Lets rename
pi3hat_moteus_interfaceto something better. - The actual interface for the user to talk to the power dist board should be in the
mjbots_hardware_interface - Modify
pi3hat_moteus_interface::Datato include data for the power dist board - Write
moteus_protocolfor the power dist board - Use the power dist board protocol to add to the data in
pi3hat::Pi3Hat::Input input; - The
pi3hat.cppshould handle the low level communication - This for loop should be modified to check the can bus to determine if the can packet was for a moteus or the power dist board. Down the line if we add more can peripherals we might need to improve this check
- Communication between the Pi3Hat thread and behavior thread should happen in the
mjbots_hardware_interface::ProcessReply()andmjbots_hardware_interface::SendCommand()
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request