Skip to content

Conversation

@williamckha
Copy link
Member

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

  • Function & Class comments: All function definitions (usually in the .h file) should have a javadoc style comment at the start of them. For examples, see the functions defined in thunderbots/software/geom. Similarly, all classes should have an associated Javadoc comment explaining the purpose of the class.
  • Remove all commented out code
  • Remove extra print statements: for example, those just used for testing
  • Resolve all TODO's: All TODO (or similar) statements should either be completed or associated with a github issue

itsarune and others added 26 commits November 22, 2023 22:16
@williamckha williamckha force-pushed the motor_firmware_integration branch from c369820 to 0982f95 Compare May 17, 2025 23:45
@williamckha williamckha mentioned this pull request Aug 22, 2025
4 tasks
Copy link
Contributor

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));
Copy link
Contributor

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)

// 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
Copy link
Contributor

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert?

Copy link
Contributor

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

Copy link
Contributor

@itsarune itsarune left a 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
Copy link
Contributor

@itsarune itsarune left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments

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 this pull request may close these issues.

4 participants