Controller Software Design
The controller software uses a state machine paradigm, as it fit well with the natural flow of the game. To start, the controller waits for the "System On" switch (which happens to be the power switch). Following this event the controller waits to receive the fleet cipher from the our boat. The controller is responsible for processing fleet wide broadcasts about crab. Next, it waits until Neptune gives the "season open" broadcast after which it continues in the "Game On" state. During the "Game On" state, the user inputs are sampled and sent to the boat at a frequency of 5Hz.
State Chart
Source Code (Click file name to see page)
Modules
Header Files
controller_source_code.zip |
File Size: | 18 kb |
File Type: | zip |
Download File