SAE Teensy ECU
IIT SAE Microcontroller programming
Loading...
Searching...
No Matches
MotorControl.def File Reference
#include "Pins.h"

Go to the source code of this file.

Macros

#define CONF_CAR_GEAR_RATIO   4.98f
 The radius of the car's wheels as a float.
 
#define CONF_MAX_TORQUE   900.0
 The maximum torque (Nm x10) as a double.
 
#define CONF_PEDAL_MIN   200.0
 The pedal input range to map as doubles.
 
#define CONF_PEDAL_MAX   1300.0
 
#define CONF_BRAKE_MIN   480.0
 The brake input range to map as doubles.
 
#define CONF_BRAKE_MAX   900.0
 
#define CONF_STEER_MIN   1756.0
 The steering input range to map as doubles.
 
#define CONF_STEER_MAX   3750.0
 

Detailed Description

Author
IR
Version
0.1
Date
2021-12-30

Various defines used for the motorcontrol module

Definition in file MotorControl.def.

Macro Definition Documentation

◆ CONF_BRAKE_MAX

#define CONF_BRAKE_MAX   900.0

Definition at line 52 of file MotorControl.def.

◆ CONF_BRAKE_MIN

#define CONF_BRAKE_MIN   480.0

The brake input range to map as doubles.

Definition at line 51 of file MotorControl.def.

◆ CONF_CAR_GEAR_RATIO

#define CONF_CAR_GEAR_RATIO   4.98f

The radius of the car's wheels as a float.

The gear ratio from motors to actual wheels

Definition at line 33 of file MotorControl.def.

◆ CONF_MAX_TORQUE

#define CONF_MAX_TORQUE   900.0

The maximum torque (Nm x10) as a double.

Definition at line 38 of file MotorControl.def.

◆ CONF_PEDAL_MAX

#define CONF_PEDAL_MAX   1300.0

Definition at line 46 of file MotorControl.def.

◆ CONF_PEDAL_MIN

#define CONF_PEDAL_MIN   200.0

The pedal input range to map as doubles.

Definition at line 45 of file MotorControl.def.

◆ CONF_STEER_MAX

#define CONF_STEER_MAX   3750.0

Definition at line 58 of file MotorControl.def.

◆ CONF_STEER_MIN

#define CONF_STEER_MIN   1756.0

The steering input range to map as doubles.

Definition at line 57 of file MotorControl.def.