ESP Line Following Buggy
2nd Year Embedded System Project (Group 48 - 2023/24)
|
contains all the constant variables for easy access from one file More...
Go to the source code of this file.
contains all the constant variables for easy access from one file
All constants are in metres, seconds, hertz unless otherwise stated
Definition in file constants.h.
#define CONTROL_UPDATE_PERIOD (1.0f / CONTROL_UPDATE_RATE) |
Definition at line 89 of file constants.h.
#define CONTROL_UPDATE_PERIOD_US (int)(1'000'000 / CONTROL_UPDATE_RATE) |
Definition at line 90 of file constants.h.
#define CONTROL_UPDATE_RATE 2500 |
Definition at line 88 of file constants.h.
#define LINE_FOLLOW_STOP_DISTANCE 0.3 |
Definition at line 64 of file constants.h.
#define LINE_FOLLOW_VELOCITY 2.1 |
Definition at line 62 of file constants.h.
#define LINE_FOLLOW_VELOCITY_UTURN 2.1 |
Definition at line 63 of file constants.h.
#define MANUAL_ACCEL_ANGLE 60 |
Definition at line 78 of file constants.h.
#define MANUAL_ACCEL_DISTANCE 0.5 |
Definition at line 77 of file constants.h.
#define MANUAL_ACCEL_SPEED 0.5 |
Definition at line 76 of file constants.h.
#define PID_A_KD 0 |
Definition at line 51 of file constants.h.
#define PID_A_KI 0.1 |
Definition at line 50 of file constants.h.
#define PID_A_KP 0.2 |
Definition at line 49 of file constants.h.
#define PID_A_MAX_INT 0 |
Definition at line 48 of file constants.h.
#define PID_A_MAX_OUT 0.6 |
Definition at line 46 of file constants.h.
#define PID_A_MIN_INT -PID_A_MAX_INT |
Definition at line 47 of file constants.h.
#define PID_A_MIN_OUT -PID_A_MAX_OUT |
Definition at line 45 of file constants.h.
#define PID_A_TAU 0.01 |
Definition at line 44 of file constants.h.
#define PID_M_L_KD 0 |
Definition at line 23 of file constants.h.
#define PID_M_L_KI 7.5 |
Definition at line 22 of file constants.h.
#define PID_M_L_KP 0.5 |
Definition at line 21 of file constants.h.
#define PID_M_MAX_INT 1 |
Definition at line 18 of file constants.h.
#define PID_M_MAX_OUT 1 |
Definition at line 16 of file constants.h.
#define PID_M_MIN_INT -PID_M_MAX_INT |
Definition at line 17 of file constants.h.
#define PID_M_MIN_OUT -PID_M_MAX_OUT |
Definition at line 15 of file constants.h.
#define PID_M_R_KD PID_M_L_KD |
Definition at line 28 of file constants.h.
#define PID_M_R_KI PID_M_L_KI |
Definition at line 27 of file constants.h.
#define PID_M_R_KP PID_M_L_KP |
Definition at line 26 of file constants.h.
#define PID_M_TAU 1 |
Definition at line 14 of file constants.h.
#define PID_S_KD 0.08 |
Definition at line 39 of file constants.h.
#define PID_S_KI 0 |
Definition at line 35 of file constants.h.
#define PID_S_KP 0.30 |
Definition at line 38 of file constants.h.
#define PID_S_MAX_INT 0 |
Definition at line 34 of file constants.h.
#define PID_S_MAX_OUT 1.5 |
Definition at line 32 of file constants.h.
#define PID_S_MIN_INT -PID_S_MAX_INT |
Definition at line 33 of file constants.h.
#define PID_S_MIN_OUT -PID_S_MAX_OUT |
Definition at line 31 of file constants.h.
#define PID_S_TAU 0.001 |
Definition at line 37 of file constants.h.
#define SENS_ANGLE_COEFF 1 |
Definition at line 58 of file constants.h.
#define SENS_DETECT_RANGE 0.4 |
Definition at line 59 of file constants.h.
#define SENS_SAMPLE_COUNT 1 |
Definition at line 57 of file constants.h.
#define SENSOR_UPDATE_PERIOD (1.0f / CONTROL_UPDATE_RATE) |
Definition at line 94 of file constants.h.
#define SENSOR_UPDATE_PERIOD_US (int)(1'000'000 / CONTROL_UPDATE_RATE) |
Definition at line 95 of file constants.h.
#define SENSOR_UPDATE_RATE 5000 |
Definition at line 93 of file constants.h.
#define SERIAL_UPDATE_PERIOD 0.02 |
Definition at line 98 of file constants.h.
#define SLOW_ACCEL_DIVIDER 2 |
Definition at line 68 of file constants.h.
#define SLOW_ACCEL_TIME 0.4 |
Definition at line 67 of file constants.h.
#define SLOW_TURNING_GAIN 0 |
Definition at line 73 of file constants.h.
#define SLOW_TURNING_THRESH 2 |
Definition at line 74 of file constants.h.
#define SQUARE_DISTANCE 1.01 |
Definition at line 85 of file constants.h.
#define SQUARE_TURNING_LEFT_ANGLE 101.5 |
Definition at line 84 of file constants.h.
#define SQUARE_TURNING_RIGHT_ANGLE 92 |
Definition at line 83 of file constants.h.
#define SQUARE_VELOCITY_SET 0.4 |
Definition at line 82 of file constants.h.
#define STOP_DETECT_TIME 1 |
Definition at line 70 of file constants.h.
#define UTURN_ANGLE 190 |
Definition at line 65 of file constants.h.