summaryrefslogtreecommitdiff
path: root/digital/io/src/servo.avr.c
diff options
context:
space:
mode:
authorJérémy Dufour2009-05-08 17:17:44 +0200
committerJérémy Dufour2009-05-08 17:17:44 +0200
commit73c73c4a2c56ce76299c7a0631d4e1c3bae9b720 (patch)
tree3f1f6350e6894b541363433ed1382694b06098a4 /digital/io/src/servo.avr.c
parent79456a7d1b2116fc8f50b82bd73b877cf8ef1bdf (diff)
* digital/io:
- remove the old trap module (for the position of the servo motors), - add a new module for the position of the servo motors, - increase number of servo motors supported, - new version of eeprom data structure.
Diffstat (limited to 'digital/io/src/servo.avr.c')
-rw-r--r--digital/io/src/servo.avr.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/digital/io/src/servo.avr.c b/digital/io/src/servo.avr.c
index 3ba43be5..6689f06a 100644
--- a/digital/io/src/servo.avr.c
+++ b/digital/io/src/servo.avr.c
@@ -103,6 +103,11 @@ servo_init (void)
/* Enable overflow interrupt */
set_bit (TIMSK, TOIE2);
+
+ /* By default, servo init disable all servo. */
+ uint8_t i;
+ for (i = 0; i < SERVO_NUMBER; i++)
+ servo_set_high_time (i, 0);
}
/* Set the high time of the input signal of a servo (and its position). */