FARMER Software Structure
The software for the FARMER (controller) consists of three orthogonal state machines. The first is the main state machine that deals with the hardware of the controller, such as the buttons, LEDs, potentiometer (thrust control spoon), and variable resistors (bunny ears). This state machine is a hierarchical state machine. The other two orthogonal state machines are the transmit and receive flat-level state machines that deal with the transmit and receipt of data to and from the DOG. The receive and main state machines trigger the transmit service to send the DOG data. The receive service parses the data from the DOG and triggers actions in the main and transmit state machines.
Farmer Files
The files from the FARMER software for use on the TI Tiva are below. Also, you can download the entire project from: gitlab.com/ME-218C/FinalProject/FARMER.
|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DOG Software Structure
The DOG software has a similar structure to that of the FARMER. There are again three orthogonal state machines with the same relations: the main hierarchical state machine that controls the DOG's hardware, a flat state machine for transmitting data to the FARMER, and a flat state machine for receiving data from the FARMER.
DOG Files
The files from the DOG software for use on the TI Tiva and the 12F752 PIC are below. Also, you can download the entire project from: gitlab.com/ME-218C/FinalProject/DOG. The code for the lift fan was written in assembly for the 12F752 PIC, which can be found: gitlab.com/ME-218C/FinalProject/TREAT.
|
| |||||||||||||
|
| |||||||||||||
|
|
| ||||||||||||||||||
|
|
| ||||||||||||||||||
|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||