summaryrefslogtreecommitdiffhomepage
path: root/digital/io/src/getsamples.h
diff options
context:
space:
mode:
authorJérémy Dufour2008-04-14 12:06:01 +0200
committerJérémy Dufour2008-04-14 12:06:01 +0200
commitd3c8bf5e81f46d66ff0badcbcbf20a3d828a30eb (patch)
treef66be160813127528352eeed837d223d6f520fe4 /digital/io/src/getsamples.h
parent7a7c0bb8b26353b2e754b4eaa79125aed33b0279 (diff)
* digital/io/src
* build - add dependency of fsm.h for main.c (for bootstrap) ; - ensure it is building for host target. * get samples FSM - remove unneeded fields in the getsamples structures ; - rename it to be more 'private' (to prevent declaring the same one) ; * top FSM - rewrite it ; - still missing some parts to implement. * general - manage color of the bot ; - initialize the switch module in the main_init ; - add position of the gutter.
Diffstat (limited to 'digital/io/src/getsamples.h')
-rw-r--r--digital/io/src/getsamples.h19
1 files changed, 1 insertions, 18 deletions
diff --git a/digital/io/src/getsamples.h b/digital/io/src/getsamples.h
index f7dd06a1..81d5ca6a 100644
--- a/digital/io/src/getsamples.h
+++ b/digital/io/src/getsamples.h
@@ -31,35 +31,18 @@
struct getsamples_data_t
{
/**
- * X position of the distributor where to get samples from.
- */
- uint32_t distributor_x;
- /**
- * Y position of the distributor where to get samples from.
- */
- uint32_t distributor_y;
- /**
* The angle to approach the distributor.
*/
- int16_t distributor_angle;
+ 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;
- /**
- * Event to post to the top FSM when this one is finished.
- */
- uint8_t event;
};
/**
- * Get samples shared data.
- */
-extern struct getsamples_data_t getsamples_data;
-
-/**
* Start the get samples FSM.
* @param data get sample data initial configuration.
*/