Vehicle Control Unit
0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
Core
Inc
Systems
External
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
7
typedef
struct
{
8
Esc
*
esc
;
9
App
*
app
;
10
}
MotorController
;
11
19
void
initMotorController
(
MotorController
* mc,
Esc
* esc,
App
* app);
20
27
float
getPedalPosition
(
const
MotorController
* mc);
28
35
float
getMotorTemp
(
const
MotorController
* mc);
36
37
#endif
// RENNSSELAERMOTORSPORT_MOTORCONTROLLER_H
Esc.h
initMotorController
void initMotorController(MotorController *mc, Esc *esc, App *app)
Initializes the MotorController with the given ESC and APP.
Definition:
MotorController.c:3
getMotorTemp
float getMotorTemp(const MotorController *mc)
Gets the motor temperature from the MotorController.
Definition:
MotorController.c:17
getPedalPosition
float getPedalPosition(const MotorController *mc)
Gets the pedal position from the MotorController.
Definition:
MotorController.c:10
App
Definition:
App.h:6
Esc
Definition:
Esc.h:6
MotorController
Definition:
MotorController.h:7
MotorController::esc
Esc * esc
Definition:
MotorController.h:8
MotorController::app
App * app
Definition:
MotorController.h:9
Generated by
1.9.5