From 74e1ec414baeb80a37be3bc922a958aad60bb8e9 Mon Sep 17 00:00:00 2001 From: Jérémy Dufour Date: Sun, 20 Apr 2008 16:04:44 +0200 Subject: * digital/io/src - use parameters to call the get samples FSM start function rather than a structure. --- digital/io/src/getsamples.h | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) (limited to 'digital/io/src/getsamples.h') diff --git a/digital/io/src/getsamples.h b/digital/io/src/getsamples.h index 81d5ca6a..bf127d29 100644 --- a/digital/io/src/getsamples.h +++ b/digital/io/src/getsamples.h @@ -25,29 +25,17 @@ * * }}} */ -/** - * Get samples FSM associated data. - */ -struct getsamples_data_t -{ - /** - * The angle to approach the distributor. - */ - int16_t approach_angle; - /** - * Bit field to indicate where to put the sample. - * If bit 0 is set to 1, a sample will be put into the out_right_box. If - * set to 0, the out_right_box will not be used to store a sample. - */ - uint8_t sample_bitfield; -}; - /** * Start the get samples FSM. - * @param data get sample data initial configuration. + * @param approach_angle the angle of approach to face the distributor + * @param sample_bitfield a bit-field to indicate where to put the collected + * samples. For example, if the bit 0 is set to 1, the sample took will be put + * into the box id 0 (out_right_box). Otherwise, if this bit is set to 0, the + * out_right box will not be use to store the sample. This parameter is also + * used to know the number of samples to collect from the distributor. */ void -getsamples_start (struct getsamples_data_t data); +getsamples_start (int16_t approach_angle, uint8_t sample_bitfield); /** * Configure the classifier (using the trap and the internal bit field) for -- cgit v1.2.3