1#ifndef LOADCELLVECTORINGCONTROLLER
2#define LOADCELLVECTORINGCONTROLLER
68 const SysTick_s &
tick,
Base class for all controllers, which define drivetrain command containing different variations of
const int errorCountThreshold_
float rearRegenTorqueScale_
float loadCellForcesRaw_[4][numFIRTaps_]
TorqueControllerOutput_s writeout_
float frontRegenTorqueScale_
TorqueControllerLoadCellVectoring()
default contructor with balanced default values: rearTorqueScale = 1.0, regenTorqueScale = 1....
static const int numFIRTaps_
void tick(const SysTick_s &tick, const PedalsSystemData_s &pedalsData, const LoadCellInterfaceOutput_s &loadCellData)
Calculates speed set point based on normal force applied to wheels individually.
TorqueControllerLoadCellVectoring(float rearTorqueScale, float regenTorqueScale)
load cell TC with tunable F/R torque balance. Accel torque balance can be tuned independently of rege...
int loadCellsErrorCounter_[4]
float FIRTaps_[numFIRTaps_]
float loadCellForcesFiltered_[4]
TorqueControllerOutput_s evaluate(const SharedCarState_s &state) override
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