Skip to content

Commit

Permalink
added in type alias
Browse files Browse the repository at this point in the history
  • Loading branch information
RCMast3r committed Sep 29, 2024
1 parent 19650a3 commit f858024
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/shared_data/include/SharedDataTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
#include "SharedFirmwareTypes.h"
#include "DrivebrainData.h"

using speed_rpm = float;
using torque_nm = float;

enum class TorqueLimit_e
{
TCMUX_FULL_TORQUE = 0,
Expand Down Expand Up @@ -45,8 +48,8 @@ struct PedalsSystemData_s
struct DrivetrainDynamicReport_s
{
uint16_t measuredInverterFLPackVoltage;
float measuredSpeeds[NUM_MOTORS]; // rpm
float measuredTorques[NUM_MOTORS];
speed_rpm measuredSpeeds[NUM_MOTORS]; // rpm
torque_nm measuredTorques[NUM_MOTORS];
float measuredTorqueCurrents[NUM_MOTORS];
float measuredMagnetizingCurrents[NUM_MOTORS];
};
Expand Down

0 comments on commit f858024

Please sign in to comment.