From 895382110b97cde108df418a888a70fe3f40639a Mon Sep 17 00:00:00 2001 From: Jérémy Dufour Date: Sun, 20 Apr 2008 19:54:48 +0200 Subject: * digital/io/src - keep structure removed from r384. --- digital/io/src/getsamples.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'digital/io/src/getsamples.h') diff --git a/digital/io/src/getsamples.h b/digital/io/src/getsamples.h index e24056e2..70a76696 100644 --- a/digital/io/src/getsamples.h +++ b/digital/io/src/getsamples.h @@ -27,6 +27,27 @@ #include "common.h" +/** + * Get samples FSM associated data. + */ +struct getsamples_data_t +{ + /** + * The angle to approach to face the distributor. + */ + int16_t approach_angle; + /** + * 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. + */ + uint8_t sample_bitfield; +}; + + /** * Start the get samples FSM. * @param approach_angle the angle of approach to face the distributor -- cgit v1.2.3