summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérémy Dufour2008-04-20 16:06:15 +0200
committerJérémy Dufour2008-04-20 16:06:15 +0200
commit9f1fe2b39c543178555a6fb035cd15e47d856357 (patch)
tree2ab2f625dae7c0df8c023fc3337e55de4f5de867
parent916f14dbe89bf84f321eb2fa029ad23f802e5279 (diff)
* digital/io/src
- remove a bug with parameters over rides.
-rw-r--r--digital/io/src/trap.c6
-rw-r--r--digital/io/src/trap.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/digital/io/src/trap.c b/digital/io/src/trap.c
index b359b8af..c9b6a491 100644
--- a/digital/io/src/trap.c
+++ b/digital/io/src/trap.c
@@ -120,12 +120,12 @@ trap_setup_path_to_box (trap_box_id_e box)
/* Set high time value for horizontal and vertical position of a trap. */
void
-trap_set_high_time (uint8_t servo_id, uint8_t horizontal, uint8_t vertical)
+trap_set_high_time (uint8_t servo_id, uint8_t h, uint8_t v)
{
if (servo_id < SERVO_NUMBER)
{
- trap_high_time_pos[horizontal][servo_id] = horizontal;
- trap_high_time_pos[vertical][servo_id] = vertical;
+ trap_high_time_pos[horizontal][servo_id] = h;
+ trap_high_time_pos[vertical][servo_id] = v;
}
}
diff --git a/digital/io/src/trap.h b/digital/io/src/trap.h
index d1bdd558..265abd6d 100644
--- a/digital/io/src/trap.h
+++ b/digital/io/src/trap.h
@@ -102,11 +102,11 @@ trap_setup_path_to_box (trap_box_id_e box);
/**
* Set high time value for horizontal and vertical position of a trap.
* @param servo_id the servo identification number.
- * @param horizontal the horizontal high time value.
- * @param vertical the vertical high time value.
+ * @param h the horizontal high time value.
+ * @param v the vertical high time value.
*/
void
-trap_set_high_time (uint8_t servo_id, uint8_t horizontal, uint8_t vertical);
+trap_set_high_time (uint8_t servo_id, uint8_t h, uint8_t v);
/**
* Open the rear panel to eject the balls.