Vehicle Control Unit 0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
MotorController.h
Go to the documentation of this file.
1#ifndef RENNSSELAERMOTORSPORT_MOTORCONTROLLER_H
2#define RENNSSELAERMOTORSPORT_MOTORCONTROLLER_H
3
4#include "Esc.h"
5#include "../../Sensors/AnalogSensors/App.h"
6
7typedef struct {
11
19void initMotorController(MotorController* mc, Esc* esc, App* app);
20
27float getPedalPosition(const MotorController* mc);
28
35float getMotorTemp(const MotorController* mc);
36
37#endif // RENNSSELAERMOTORSPORT_MOTORCONTROLLER_H
void initMotorController(MotorController *mc, Esc *esc, App *app)
Initializes the MotorController with the given ESC and APP.
float getMotorTemp(const MotorController *mc)
Gets the motor temperature from the MotorController.
float getPedalPosition(const MotorController *mc)
Gets the pedal position from the MotorController.
Definition: App.h:6
Definition: Esc.h:6