MCU
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
TestControllerType Class Reference

#include <fake_controller_type.h>

Inheritance diagram for TestControllerType:
Inheritance graph
Collaboration diagram for TestControllerType:
Collaboration graph

Public Member Functions

TorqueControllerOutput_s evaluate (const SharedCarState_s &state) override
 This mehod must be implemented by every controller in the Tc Muxer. This is called in the Muxer whenever the drivetrain command is obtained. TorqueControllerMux.cpp to see that in every tick of the system, the active controller must be ticked through this method. More...
 
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 whenever the drivetrain command is obtained. TorqueControllerMux.cpp to see that in every tick of the system, the active controller must be ticked through this method. More...
 

Public Attributes

TorqueControllerOutput_s output
 

Detailed Description

Definition at line 8 of file fake_controller_type.h.

Member Function Documentation

◆ evaluate()

TorqueControllerOutput_s TestControllerType::evaluate ( const SharedCarState_s state)
inlineoverridevirtual

This mehod must be implemented by every controller in the Tc Muxer. This is called in the Muxer whenever the drivetrain command is obtained. TorqueControllerMux.cpp to see that in every tick of the system, the active controller must be ticked through this method.

Parameters
statewith all sensor information to properly define torque set points
Returns
TorqueControllerOutput_s This is a Drivetrain command passed along with a state boolean to ensure car controllers are working properly

Implements Controller.

Definition at line 13 of file fake_controller_type.h.

13{ return output; }
TorqueControllerOutput_s output

Member Data Documentation

◆ output

TorqueControllerOutput_s TestControllerType::output

Definition at line 12 of file fake_controller_type.h.


The documentation for this class was generated from the following file: