1#ifndef SIMPLECONTROLLER
2#define SIMPLECONTROLLER
Base class for all controllers, which define drivetrain command containing different variations of
float frontRegenTorqueScale_
TorqueControllerOutput_s writeout_
void tick(const PedalsSystemData_s &pedalsData)
calculates torque output based off max torque and simple torque scaling metric defined in constructor...
TorqueControllerOutput_s evaluate(const SharedCarState_s &state) override
float rearRegenTorqueScale_
TorqueControllerSimple(float rearTorqueScale, float regenTorqueScale)
simple TC with tunable F/R torque balance. Accel torque balance can be tuned independently of regen t...
const DrivetrainCommand_s TC_COMMAND_NO_TORQUE
car state struct that contains state of everything about the car including
Packages drivetrain command with ready boolean to give feedback on controller successfully evaluating...
DrivetrainCommand_s command