BinghamtonRover / Firmware-Utilities

A shared implementation of the CAN bus protocol for Arduino-based microcontrollers.
https://BinghamtonRover.github.io/burt-can/
2 stars 0 forks source link

Add arm and gripper data packets #7

Closed sbrokal1 closed 1 year ago

sbrokal1 commented 2 years ago

Update src/data to contain data packets for both arm and gripper. Each has 2 data packets, with appropriate constructor and getter to match all data needs.

sbrokal1 commented 2 years ago

Made requested changes.

Levi-Lesches commented 2 years ago

Nice. Now... documentation? 😁 Make each doc comment start with ///, eg,

/// The first data packet sent by the Arm board.
struct ArmPacket1 {
  private:
    /// The current angle of the swivel joint, scaled by 1000 to be a 5-digit integer. 
    unsigned short swivelAngle;

    /// The target angle of the swivel joint, scaled by 1000 to be a 5-digit integer. 
    unsigned short swivelTarget;
    ...
}