MCU
Loading...
Searching...
No Matches
CASEControllerWrapper.h
Go to the documentation of this file.
1#ifndef __CASECONTROLLERWRAPPER_H__
2#define __CASECONTROLLERWRAPPER_H__
3#include "BaseController.h"
4
5#include "CASESystem.h"
6
7template <typename message_queue>
10{
11public:
16 {
17 }
21 {
22 DrivetrainCommand_s curr_cmd = case_instance_->get_current_drive_command();
24 out.ready = true;
25 out.command = curr_cmd;
26 return out;
27 }
28
29private:
31
32};
33
34#endif // __CASECONTROLLERWRAPPER_H__
this class with both take in sensor inputs as well as handle calculations for various derived states ...
Definition: CASESystem.h:97
Base class for all controllers, which define drivetrain command containing different variations of
makes CASE system a part of Controller hierarchy for use in TC Mux
TorqueControllerCASEWrapper(CASESystem< message_queue > *case_instance)
CASESystem< message_queue > * case_instance_
TorqueControllerOutput_s evaluate(const SharedCarState_s &state) override
packages CASE system command into Torque Controller Output
Stores setpoints for a command to the Drivetrain, containing speed and torque setpoints for each moto...
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