1#ifndef __DRIVEBRAINCONTROLLER_H__
2#define __DRIVEBRAINCONTROLLER_H__
Base class for all controllers, which define drivetrain command containing different variations of
Drivebrain Controller for fail-safe pass-through control of the car RESPONSIBILITIES AND DOCUMENTATIO...
unsigned long allowed_latency
struct DrivebrainController::@0 _params
unsigned long _last_worst_latency_timestamp
DrivebrainController(unsigned long allowed_latency, ControllerMode_e assigned_controller_mode=ControllerMode_e::MODE_4)
constructor for the drivebrain controller class
TorqueControllerOutput_s evaluate(const SharedCarState_s &state)
evaluate function for running the business logic
bool get_timing_failure_status()
getter for the current status of whether or not the controller has had a timing failure during operat...
unsigned long _last_setpoint_millis
ControllerMode_e assigned_controller_mode
int64_t _worst_latency_so_far
TorqueControllerSimple _emergency_control
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...