From 73c73c4a2c56ce76299c7a0631d4e1c3bae9b720 Mon Sep 17 00:00:00 2001 From: Jérémy Dufour Date: Fri, 8 May 2009 17:17:44 +0200 Subject: * 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. --- digital/io/src/servo.avr.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'digital/io/src/servo.avr.c') 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). */ -- cgit v1.2.3