Vehicle Control Unit
0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
Core
Inc
Utils
Constants.h
Go to the documentation of this file.
1
// ADC
2
#define ADC1_CHANNEL_SIZE 7
3
#define ADC2_CHANNEL_SIZE 7
4
#define ADC3_CHANNEL_SIZE 8
5
#define ADC_CHANNELS ADC1_CHANNEL_SIZE+ADC2_CHANNEL_SIZE+ADC3_CHANNEL_SIZE
// Total number of ADC channels
6
#define ADC_VREF 5
// ADC reference voltage
7
8
// DAC
9
#define DAC1_BUFFER_SIZE 1
10
#define DAC2_BUFFER_SIZE 1
11
12
// Digital I/O
13
#define NUM_DIGITAL_OUTPUTS 8
14
#define NUM_DIGITAL_INPUTS 3
15
16
// RTD Constants
17
#define MAX_A_PEDAL_POSITION 0.01
18
#define MIN_BRAKE_PRESSURE 800
19
20
// Controller Constants
21
#define MAX_MONITORS 3
22
23
// Torque
24
#define TORQUE_LOW_MARGIN 2.0
Generated by
1.9.5