SAE Teensy ECU
IIT SAE Microcontroller programming
Loading...
Searching...
No Matches
MotorControl.def
Go to the documentation of this file.
1
15
#ifndef __ECU_MOTORCONTROL_DEF__
16
17
// @cond
18
19
#define __ECU_MOTORCONTROL_DEF__
20
21
// @endcond
22
23
#include "
Pins.h
"
24
28
// #define CONF_CAR_WHEEL_RADIUS 0.22f // TODO: Get car wheel radius
29
33
#define CONF_CAR_GEAR_RATIO 4.98f
34
38
#define CONF_MAX_TORQUE 900.0
39
40
// TODO: get input value ranges
41
45
#define CONF_PEDAL_MIN 200.0
46
#define CONF_PEDAL_MAX 1300.0
47
51
#define CONF_BRAKE_MIN 480.0
52
#define CONF_BRAKE_MAX 900.0
53
57
#define CONF_STEER_MIN 1756.0
58
#define CONF_STEER_MAX 3750.0
59
#endif
// __ECU_MOTORCONTROL_DEF__
Pins.h
Update, set, and get predefined pin values.
libraries
MotorControl
MotorControl.def
Generated by
1.9.8