MCU
Loading...
Searching...
No Matches
BaseController.h
Go to the documentation of this file.
1#ifndef BASECONTROLLER
2#define BASECONTROLLER
3#include "SharedDataTypes.h"
4
8{
10 .speeds_rpm = {0.0, 0.0, 0.0, 0.0},
11 .inverter_torque_limit = {0.0, 0.0, 0.0, 0.0}};
12
13}
18{
19public:
25};
26
27#endif
Base class for all controllers, which define drivetrain command containing different variations of
virtual TorqueControllerOutput_s evaluate(const SharedCarState_s &state)=0
This mehod must be implemented by every controller in the Tc Muxer. This is called in the Muxer whene...
defines namespace for definition of a drivetrain command with no torque for clearer code in the Muxer...
Definition: BaseController.h:8
const DrivetrainCommand_s TC_COMMAND_NO_TORQUE
Definition: BaseController.h:9
Stores setpoints for a command to the Drivetrain, containing speed and torque setpoints for each moto...
float speeds_rpm[NUM_MOTORS]
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...