Skip to content

Commit cd63cb9

Browse files
committed
fixing stamped type
1 parent dc4f653 commit cd63cb9

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

include/SharedFirmwareTypes.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,6 @@ struct DrivetrainSpeedCommand_s
372372
{
373373
veh_vec<speed_rpm> desired_speeds;
374374
veh_vec<torque_nm> torque_limits;
375-
// HACK: doing this to support
376-
explicit DrivetrainSpeedCommand_s(const DrivetrainTorqueCommand_s & cmd) : desired_speeds(cmd.torque_setpoints), torque_limits(cmd.torque_limits) { }
377375
};
378376

379377
using DrivetrainCommand_s = DrivetrainSpeedCommand_s;
@@ -382,13 +380,12 @@ using DrivetrainCommand_s = DrivetrainSpeedCommand_s;
382380

383381
struct StampedDrivetrainTorqueCommand_s
384382
{
385-
StampedVehVec<speed_rpm> torque_limits;
386383
StampedVehVec<torque_nm> torque_setpoints;
387384

388385
DrivetrainTorqueCommand_s get_command()
389386
{
390387
return {.torque_setpoints= torque_setpoints.veh_vec_data,
391-
.torque_limits = torque_limits.veh_vec_data};
388+
.torque_limits = torque_setpoints.veh_vec_data};
392389
}
393390
};
394391

0 commit comments

Comments
 (0)