15 #ifndef HARDWARECONFIGURATION_H 16 #define HARDWARECONFIGURATION_H 42 #else //use an more agressiv PID 43 const double K_P = 30;
44 const double K_I = 20;
45 const double K_D = 0.05;
50 #define SONAR_SERVO_PIN 5 51 #define SONAR_TRIGGER_PIN 15 52 #define SONAR_ECHO_PIN 14 53 #define SONAR_MAX_DISTANCE 9999 56 #define MIN_TURN_ANGLE 180 57 #define MAX_TURN_ANGLE 0 61 #define HOIST_SERVO_PIN 6 62 #define HOIST_SERVO_DELAY 30 63 #define HOIST_POSITION_MIN 160 64 #define HOIST_POISITION_MAX 65 68 #define VISION_SERVO_PIN 5 69 #define VISION_DELAY_FACTOR 6 70 #define VISION_TOLERANCE_LEFT 165 71 #define VISION_TOLERANCE_RIGHT 155 72 #define VISION_START_ANGLE 90 const unsigned int REDUCED_SPEED
Reduced operating speed.
const unsigned int PIN_SENSOR_0
Pin number of line detection sensor 0.
const unsigned int LEFT_MOTOR
Portnumber of the left motor on the motorshield.
const double PID_KI
I-value of the PID-controller.
const unsigned int SPEED
Standard operating speed.
const unsigned int PIN_SENSOR_4
Pin number of line detection sensor 4.
const double PID_KD
D-value of the PID-controller.
const unsigned int PIN_SENSOR_3
Pin number of line detection sensor 3.
const unsigned int RIGHT_MOTOR
Portnumber of the right motor on the motorshield.
const unsigned int PIN_SENSOR_1
Pin number of line detection sensor 1.
const unsigned int TURNING_SPEED
Turning speed.
const double SPEEDFACTOR
The speed factor can be used to increase or decrease the complete speed. it affects all speed setting...
const double PID_KP
P-value of the PID-controller.
const unsigned int PIN_SENSOR_2
Pin number of line detection sensor 2.