Go to the source code of this file.
◆ bitRead
| #define bitRead |
( |
|
value, |
|
|
|
bit |
|
) |
| (((value) >> (bit)) & 0x01) |
◆ constrain
| #define constrain |
( |
|
amt, |
|
|
|
low, |
|
|
|
high |
|
) |
| ((amt) < (low) ? (low) : ((amt) > (high) ? (high) : (amt))) |
Macros (Arduino-style here)
Definition at line 5 of file robot.h.
◆ DEG_TO_RAD
| #define DEG_TO_RAD 0.0174532925199 |
◆ DT
◆ ENCODER_CHANNEL_L
| #define ENCODER_CHANNEL_L 1 |
◆ ENCODER_CHANNEL_R
| #define ENCODER_CHANNEL_R 2 |
◆ ENCODER_POLARITY_L
| #define ENCODER_POLARITY_L 1 |
◆ ENCODER_POLARITY_R
| #define ENCODER_POLARITY_R -1 |
◆ ENCODER_RES
| #define ENCODER_RES 12.00 |
◆ GEARBOX
Structural properties.
Definition at line 21 of file robot.h.
◆ LINE_LED
◆ LINE_SENSOR_POSITION_M
| #define LINE_SENSOR_POSITION_M 0.077 |
◆ LINE_SENSOR_SPACING_M
| #define LINE_SENSOR_SPACING_M 0.008 |
◆ MAX
| #define MAX |
( |
|
a, |
|
|
|
b |
|
) |
| (((a) > (b)) ? (a) : (b)) |
◆ MIN
| #define MIN |
( |
|
a, |
|
|
|
b |
|
) |
| (((a) < (b)) ? (a) : (b)) |
◆ MOTOR_CHANNEL_L
| #define MOTOR_CHANNEL_L 1 |
Electrical hookups.
Definition at line 31 of file robot.h.
◆ MOTOR_CHANNEL_R
| #define MOTOR_CHANNEL_R 2 |
◆ MOTOR_POLARITY_L
| #define MOTOR_POLARITY_L -1 |
◆ MOTOR_POLARITY_R
| #define MOTOR_POLARITY_R 1 |
◆ PI
| #define PI 3.1415926535897932384626433832795 |
Constants.
Definition at line 11 of file robot.h.
◆ RAD_TO_DEG
| #define RAD_TO_DEG 57.295779513 |
◆ S0
◆ S1
◆ S2
◆ SAMPLE_RATE_HZ
| #define SAMPLE_RATE_HZ 40 |
Control loop properties.
Definition at line 17 of file robot.h.
◆ TRACK_WIDTH_HALF_M
| #define TRACK_WIDTH_HALF_M 0.0425 |
◆ TRACK_WIDTH_M
| #define TRACK_WIDTH_M 0.085 |
◆ TWO_PI
| #define TWO_PI 6.283185307179586476925286766559 |
◆ WHEEL_DIAMETER_M
| #define WHEEL_DIAMETER_M 0.029 |
◆ WHEEL_RADIUS_M
| #define WHEEL_RADIUS_M 0.0145 |