igvc-software
igvc-software copied to clipboard
Motor output from MBED
Description
We currently have no idea what values our MBED is sending to the motors, which is kind of scary, and hard to debug controls problems.
This PR does the following:
- Creates a
igvc_msgs::motor_control
message type for modelling the MBED output to the motors (0 - 255) - Updates the
igvc.pb.c
andigvc.pb.h
to include the newleft_output
andright_output
fields - Updated
motor_controller
to extract the motor outputs and publish them.
Fixes #403.
Testing steps (If relevant)
Test on Jessii
- Launch
motor_controller
on Jessii and a joystick node, with wheels decoupled -
rostopic echo /motor_output
- Move the joystick around
Expectation: It should values corresponding to what you are joysticking
Self Checklist
- [x] I have formatted my code using
make format
- [ ] I have tested that the new behaviour works