Macros
robot.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define bitRead(value, bit)   (((value) >> (bit)) & 0x01)
 
#define constrain(amt, low, high)   ((amt) < (low) ? (low) : ((amt) > (high) ? (high) : (amt)))
 Macros (Arduino-style here) More...
 
#define DEG_TO_RAD   0.0174532925199
 
#define DT   0.025
 
#define ENCODER_CHANNEL_L   1
 
#define ENCODER_CHANNEL_R   2
 
#define ENCODER_POLARITY_L   1
 
#define ENCODER_POLARITY_R   -1
 
#define ENCODER_RES   12.00
 
#define GEARBOX   50.00
 Structural properties. More...
 
#define LINE_LED   3, 2
 
#define LINE_SENSOR_POSITION_M   0.077
 
#define LINE_SENSOR_SPACING_M   0.008
 
#define MAX(a, b)   (((a) > (b)) ? (a) : (b))
 
#define MIN(a, b)   (((a) < (b)) ? (a) : (b))
 
#define MOTOR_CHANNEL_L   1
 Electrical hookups. More...
 
#define MOTOR_CHANNEL_R   2
 
#define MOTOR_POLARITY_L   -1
 
#define MOTOR_POLARITY_R   1
 
#define PI   3.1415926535897932384626433832795
 Constants. More...
 
#define RAD_TO_DEG   57.295779513
 
#define S0   1, 25
 
#define S1   1, 17
 
#define S2   3, 20
 
#define SAMPLE_RATE_HZ   40
 Control loop properties. More...
 
#define TRACK_WIDTH_HALF_M   0.0425
 
#define TRACK_WIDTH_M   0.085
 
#define TWO_PI   6.283185307179586476925286766559
 
#define WHEEL_DIAMETER_M   0.029
 
#define WHEEL_RADIUS_M   0.0145
 

Macro Definition Documentation

◆ bitRead

#define bitRead (   value,
  bit 
)    (((value) >> (bit)) & 0x01)

Definition at line 6 of file robot.h.

◆ 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

Definition at line 13 of file robot.h.

◆ DT

#define DT   0.025

Definition at line 18 of file robot.h.

◆ ENCODER_CHANNEL_L

#define ENCODER_CHANNEL_L   1

Definition at line 35 of file robot.h.

◆ ENCODER_CHANNEL_R

#define ENCODER_CHANNEL_R   2

Definition at line 36 of file robot.h.

◆ ENCODER_POLARITY_L

#define ENCODER_POLARITY_L   1

Definition at line 37 of file robot.h.

◆ ENCODER_POLARITY_R

#define ENCODER_POLARITY_R   -1

Definition at line 38 of file robot.h.

◆ ENCODER_RES

#define ENCODER_RES   12.00

Definition at line 22 of file robot.h.

◆ GEARBOX

#define GEARBOX   50.00

Structural properties.

Definition at line 21 of file robot.h.

◆ LINE_LED

#define LINE_LED   3, 2

Definition at line 42 of file robot.h.

◆ LINE_SENSOR_POSITION_M

#define LINE_SENSOR_POSITION_M   0.077

Definition at line 28 of file robot.h.

◆ LINE_SENSOR_SPACING_M

#define LINE_SENSOR_SPACING_M   0.008

Definition at line 27 of file robot.h.

◆ MAX

#define MAX (   a,
  b 
)    (((a) > (b)) ? (a) : (b))

Definition at line 8 of file robot.h.

◆ MIN

#define MIN (   a,
  b 
)    (((a) < (b)) ? (a) : (b))

Definition at line 7 of file robot.h.

◆ 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

Definition at line 32 of file robot.h.

◆ MOTOR_POLARITY_L

#define MOTOR_POLARITY_L   -1

Definition at line 33 of file robot.h.

◆ MOTOR_POLARITY_R

#define MOTOR_POLARITY_R   1

Definition at line 34 of file robot.h.

◆ PI

#define PI   3.1415926535897932384626433832795

Constants.

Definition at line 11 of file robot.h.

◆ RAD_TO_DEG

#define RAD_TO_DEG   57.295779513

Definition at line 14 of file robot.h.

◆ S0

#define S0   1, 25

Definition at line 39 of file robot.h.

◆ S1

#define S1   1, 17

Definition at line 40 of file robot.h.

◆ S2

#define S2   3, 20

Definition at line 41 of file robot.h.

◆ 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

Definition at line 26 of file robot.h.

◆ TRACK_WIDTH_M

#define TRACK_WIDTH_M   0.085

Definition at line 25 of file robot.h.

◆ TWO_PI

#define TWO_PI   6.283185307179586476925286766559

Definition at line 12 of file robot.h.

◆ WHEEL_DIAMETER_M

#define WHEEL_DIAMETER_M   0.029

Definition at line 23 of file robot.h.

◆ WHEEL_RADIUS_M

#define WHEEL_RADIUS_M   0.0145

Definition at line 24 of file robot.h.



rosinljubljana
Author(s): Igor Banfi
autogenerated on Mon Feb 24 2020 12:32:36