Skip to content

Commit

Permalink
David Knight is him
Browse files Browse the repository at this point in the history
fixing car to make sure that our car actually utilzes all of the torque that it has
  • Loading branch information
shaynoorani committed Apr 8, 2024
1 parent c7ee82f commit a41fe11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/interfaces/include/InverterInterface.tpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ void InverterInterface<message_queue>::handle_command(const InverterCommand &com
mc_setpoints_command.set_driver_enable(true);
mc_setpoints_command.set_hv_enable(true);
mc_setpoints_command.set_inverter_enable(true);
int16_t torque_cmd = (command.torque_setpoint_nm/21.42)*1000;
int16_t torque_cmd = (command.torque_setpoint_nm)*100;

// Serial.println(torque_cmd);
mc_setpoints_command.set_speed_setpoint((int16_t)command.speed_setpoint_rpm);
Expand Down

1 comment on commit a41fe11

@RCMast3r
Copy link
Collaborator

Choose a reason for hiding this comment

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

hytech-racing/HT_CAN@cc1661b

fixing in HT_CAN

Please sign in to comment.