|
|
|
@ -9,9 +9,9 @@
|
|
|
|
|
const float SERVO_SPEED = 1.8;
|
|
|
|
|
const float OPEN_ANGLE = 10.0;
|
|
|
|
|
const float CLOSED_ANGLE = 160.0;
|
|
|
|
|
const float SERVO_PWR_TIME 500 //time to stop powering servomotor after the end of move
|
|
|
|
|
const float DOOR_OPENED_TIME 3000 //time to keep door open after last dectection on IR sensor
|
|
|
|
|
const float IR_DETECTION_THRESHOLD 100 //IR dectection threshold
|
|
|
|
|
const float SERVO_PWR_TIME = 500; //time to stop powering servomotor after the end of move
|
|
|
|
|
const float DOOR_OPENED_TIME = 3000; //time to keep door open after last dectection on IR sensor
|
|
|
|
|
const float IR_DETECTION_THRESHOLD = 100; //IR dectection threshold
|
|
|
|
|
|
|
|
|
|
//Pin definitions
|
|
|
|
|
#define RED_LED 12
|
|
|
|
|