-
Notifications
You must be signed in to change notification settings - Fork 122
Motor driver firmware integration #3458
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
base: master
Are you sure you want to change the base?
Conversation
…ts_crosstool_compiler
…re into tbots_crosstool_compiler
…e/Software into motor_firmware_integration
…into motor_firmware_integration
c369820 to
0982f95
Compare
…into motor_firmware_integration
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.
Seems like an accidental change
| tx[5] = FRAME_EOF; | ||
|
|
||
| const uint8_t message[] = {tx[1], tx[2], tx[3]}; | ||
| tx[4] = Crc8Autosar::calc(message, sizeof(message)); |
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.
Consider using the CRC function we've already implemented:
| uint16_t crc16(const std::vector<uint8_t>& data, uint16_t length) |
src/software/embedded/motor_controller/stspin_motor_controller.cpp
Outdated
Show resolved
Hide resolved
| // TODO (#2720): compute from robot constants (this was computed by hand and is | ||
| // accurate) | ||
| static constexpr double MECHANICAL_MPS_PER_ELECTRICAL_RPM = 0.000111; | ||
| #ifdef TRINAMIC_MOTOR_BOARD |
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.
Move this to pi_constants.h and jetson_constants.h
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.
Revert?
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.
Revert changes in this file
itsarune
left a comment
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.
Left some comments
…into motor_firmware_integration # Conflicts: # src/WORKSPACE # src/shared/2021_robot_constants.cpp # src/software/embedded/services/motor.cpp # src/software/embedded/services/robot_auto_test.cpp
src/software/embedded/motor_controller/stspin_motor_controller.cpp
Outdated
Show resolved
Hide resolved
src/software/embedded/motor_controller/tmc_motor_controller.cpp
Outdated
Show resolved
Hide resolved
itsarune
left a comment
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.
Left some comments
Please fill out the following before requesting review on this PR
Description
Testing Done
Resolved Issues
Length Justification and Key Files to Review
Review Checklist
It is the reviewers responsibility to also make sure every item here has been covered
.hfile) should have a javadoc style comment at the start of them. For examples, see the functions defined inthunderbots/software/geom. Similarly, all classes should have an associated Javadoc comment explaining the purpose of the class.TODO(or similar) statements should either be completed or associated with a github issue