summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFlorent Duchon2012-05-16 17:07:37 +0200
committerFlorent Duchon2012-05-16 17:43:09 +0200
commit63cb73a6ee91deb2ca0f1458595eb45bc172632e (patch)
treed9cc657b5185132dd58fbaf1a53430909be6ca7d
parent101b15e4721f6a6579771445ee4ade7647f1d5b8 (diff)
digital/beacon: modify SERVO_2 angle position according to the beacon number (and fix double define)
-rw-r--r--digital/beacon/src/servo.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/digital/beacon/src/servo.h b/digital/beacon/src/servo.h
index fa437c36..7066643c 100644
--- a/digital/beacon/src/servo.h
+++ b/digital/beacon/src/servo.h
@@ -30,11 +30,17 @@
#define SERVO_ANGLE_MAX 254
#define SERVO_ANGLE_POSITION_TOLERANCE 5
+
#define WAVE_TASK_PERIOD 15L
#define SERVO_WAVE_OFFSET (uint16_t)6
+
+
#define SERVO_1_ANGLE_POSITION 0
+#ifdef LOL_NUMBER_3
#define SERVO_2_ANGLE_POSITION 270
-#define SERVO_ANGLE_POSITION_TOLERANCE 20
+#else
+#define SERVO_2_ANGLE_POSITION 90
+#endif
#define RISING 1