summaryrefslogtreecommitdiff
path: root/digital/io/src/main.c
AgeCommit message (Collapse)Author
2008-06-17 * digital/avr/modules/path, digital/io/src:Nicolas Schodet
- moved path finding to a separated module.
2008-06-17 * digital/io/src:Nicolas Schodet
- make path independent of playground.
2008-05-03 * digital/io/srcJérémy Dufour
- manage the event where the bot can be blocked (when moving) in the different FSM, by waiting and trying again ; - ensure we update the classifier (with the servos motor) even when the arm move in a state where it should not.
2008-05-03 * digital/io/srcJérémy Dufour
* top FSM - change the position where to drop balls at the gutter (to prevent the order of dropped balls to change) ; - change the order of balls taken at the distributor: first two samples with three ice, then three samples with two ice. * get samples FSM - manage the case where the arm passed the noted position in the state where it should not (because the arm was blocked) ; - add some debug messages. * gutter FSM - reduce the time spent to drop the balls at the gutter. * move FSM - update the algorithm to avoid obstacle: when a obstacle is seen, first way, then if it is not present anymore continue, otherwise, try to find an alternative path; if none found, wait again. * chrono - near end of the match time increased to 83s.
2008-05-02 * digital/io/src:Nicolas Schodet
- added arm close timeout.
2008-05-02 * digital/io/srcJérémy Dufour
- add asserv goto with moving backward support.
2008-05-01 * digital/io/srcJérémy Dufour
- by default, when the io start, put the flag to stop when seeing an obstacle on.
2008-05-01 * digital/io/srcJérémy Dufour
- ignore when the bot is blocked and going to the distributor.
2008-05-01 * digital/io/srcJérémy Dufour
- add a command to get the stats of main timer.
2008-05-01 * digital/io/srcJérémy Dufour
- add flag for homologation to stop the bot when it finds an obstacle rather than trying to avoid it.
2008-05-01 * digital/io/srcJérémy Dufour
- enhance move FSM with support to stop when there is no valid path found to avoid the obstacle ; - add a flag to be notified from the main loop after a certain amount of time.
2008-05-01 * digital/io/srcJérémy Dufour
- add a function to the sharp module to know if there is a obstacle in front of us (by taking in account the current moving direction of the bot).
2008-04-30 * digital/io/srcJérémy Dufour
- update sharp more often ; - correctly compute radius, distance and validity in the move FSM for path module.
2008-04-30 * digital/io/srcJérémy Dufour
- fix a bug to update sharps data even if the event of obstacle is disabled in the main loop.
2008-04-30 * digital/io/srcJérémy Dufour
- add a command to get statistics on the position of the bot.
2008-04-30 * digital/io/srcJérémy Dufour
- rewrite the move FSM ; - integrate it into the main loop with the sharp and path module.
2008-04-30 * digital/io/srcJérémy Dufour
- correct a bug when dumping eeprom data.
2008-04-30 * digital/io/srcJérémy Dufour
- initialize sharp module during io main init ; - add a fifth sharp and correct their numbering ; - update eeprom key value.
2008-04-30 * digital/io/srcJérémy Dufour
- integrate sharp to generate obstacle event for move FSM.
2008-04-30 * digital/io/srcJérémy Dufour
* main - move the place where the updates of the sharp and switch modules is made. * eeprom - add command to dump the eeprom configuration. * sharp - integrate sharp module update into main ; - add function to get raw and interpreted stats of sharps ;
2008-04-29 * digital/io/src:Nicolas Schodet
- added distance sensors support for simulation. - added preliminary sharps commands.
2008-04-28 * digital/io/srcJérémy Dufour
- add a command to open or close the rear panel.
2008-04-28 * digital/io/srcJérémy Dufour
- make a dirty fix to let the io and asserv card boot correctly with the twi on ; - ensure interruption are enable as soon as possible.
2008-04-27move.fsm: Update the fsm to use the path finder.Nélio Laranjeiro
* update the events in the main.c file. * update the move_cb.c * added some constants.
2008-04-25 * digital/io/srcJérémy Dufour
- ensure event is reset after being posted ; - use 0xFF value for not an event rather than 0 (it prevents the dirty fix to add 1 to the event).
2008-04-24 * digital/io/srcJérémy Dufour
- when a sub FSM finished, it posts an event for the top FSM which will be notified in the next main loop iteration (rather than the actual one).
2008-04-24 * digital/io/srcJérémy Dufour
- make fsm handle event return 1 if a transition has been executed ; - in the main loop, when a transition has been executed, continue to the next iteration.
2008-04-24 * digital/io/srcJérémy Dufour
- add goto an absolute position command over UART.
2008-04-24 * digital/io/srcJérémy Dufour
- integrate move FSM into main loop.
2008-04-23 * digital/io/srcJérémy Dufour
- integrate gutter FSM into the main loop.
2008-04-23 * digital/io/srcJérémy Dufour
- seperate chrono into two files (source and header) ; - add necessary functions to end the match ; - integrate it into the main loop ; - partial integration into the simulator (need to simulate a counter).
2008-04-22* digital/io/src:Nicolas Schodet
- made the arm control work.
2008-04-22 * digital/io/src:Nicolas Schodet
- fixed asserv status event generation. - also require that the last command be acknowledged or status can be out of date if a transition sent a new command.
2008-04-21 * digital/io/srcJérémy Dufour
- start top FSM does not require the team color anymore (it is managed in the top FSM itself) ; - start top FSM into the main init.
2008-04-21 * digital/io/srcJérémy Dufour
- resetting of asserv parameters is now a separate state in order to get the acknowledge from the asserv board ; - integrate the handle of this event into the main loop.
2008-04-21 * digital/io/srcJérémy Dufour
- move functions definitions of switch module to a source file ; - add a filter when getting the state value of the jack ; - add jack events transmission to the top FSM into the main loop ; - make it build for host implementation.
2008-04-20 * digital/io/srcJérémy Dufour
- fix commands name over UART to be the same as the ones over TWI ; - add commands for the arm.
2008-04-20 * digital/io/srcJérémy Dufour
- fix parameter for get_samples_start by shifting the angle.
2008-04-20 * digital/io/srcJérémy Dufour
- add asserv commands to the UART protocol.
2008-04-20 * digital/io/srcJérémy Dufour
- add the 'g' command to start the get samples FSM.
2008-04-14 * digital/io/srcJérémy Dufour
* 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.
2008-04-14 * digital/io/srcJérémy Dufour
- add notifier for the desired arm position ; - integrate it in the get samples FSM.
2008-04-14 * digital/io/srcJérémy Dufour
- integrate some events into the main for the getsamples FSM ; - correct example.
2008-04-14 * digital/io/srcJérémy Dufour
- manage command retransmission (when not acknowledge by the asserv) ; - integrate retransmission and update of the asserv into the main.
2008-04-04 * digital/io/src, host/inter:Nicolas Schodet
- added host support to io.
2008-03-28 * digital/io/srcJérémy Dufour
- fix includes (thanks to ni).
2008-03-22 * digital/io/srcJérémy Dufour
- add EEPROM command over UART protocol to: - save current configuration; - invalidate current configuration.
2008-03-22 * digital/io/srcJérémy Dufour
- add servo/trap commands over UART protocol to: - control the position of a servo motor (servo); - setup the configuration of vertical and horizontal position (trap); - open a path to a desired box (trap).
2008-03-19 * digital/io/srcJérémy Dufour
- add trap module (not integrated in the io program); - add eeprom module to support load/store parameters (for the trap module); - partial integration of eeprom in the io program.
2008-03-11 * digital/io/srcJérémy Dufour
- add switch module to manage the jack and color selector.