summaryrefslogtreecommitdiffhomepage
path: root/digital/io/src/trap.c
diff options
context:
space:
mode:
authorJérémy Dufour2008-04-01 10:49:44 +0200
committerJérémy Dufour2008-04-01 10:49:44 +0200
commit1197ceaf9f4a3730bf89542ad28ddd6aff634ade (patch)
treeb0e36db7ea234811554a288fa20b544bc738db2f /digital/io/src/trap.c
parent0d008cc2720a8c4bb3b76c6dec5040464d048adf (diff)
* digital/io/src
- add support for the rear trap (to eject the balls); - update eeprom key as required.
Diffstat (limited to 'digital/io/src/trap.c')
-rw-r--r--digital/io/src/trap.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/digital/io/src/trap.c b/digital/io/src/trap.c
index a57147bc..61a667fc 100644
--- a/digital/io/src/trap.c
+++ b/digital/io/src/trap.c
@@ -126,3 +126,17 @@ trap_set_high_time (uint8_t servo_id, uint8_t horizontal, uint8_t vertical)
trap_high_time_pos[vertical][servo_id] = vertical;
}
}
+
+/* Open the rear pannel to eject the balls. */
+void
+trap_open_rear_panel (void)
+{
+ servo_set_high_time (5, trap_high_time_pos[horizontal][5]);
+}
+
+/* Close the rear pannel to eject the balls. */
+void
+trap_close_rear_panel (void)
+{
+ servo_set_high_time (5, trap_high_time_pos[vertical][5]);
+}