UI Task interfaces between front end and the serial port. More...
Public Member Functions | |
| def | __init__ (self, debugFlag=True) |
| Initialize the UI task. More... | |
| def | run (self) |
| Report necessary measurements the front end. More... | |
| def | transitionTo (self, newState) |
| Method for transitioning states. More... | |
UI Task interfaces between front end and the serial port.
This class will take data and report it through serial to the front end. It also receives characters/commands from the front end.
| def Lab0x03_uiTask.uiTask.__init__ | ( | self, | |
debugFlag = True |
|||
| ) |
Initialize the UI task.
This task will collect and send data to the front end for the voltage reading from the button circuitry.
| debugFlag | Enables or prevents certain print statements from appearing. |
| def Lab0x03_uiTask.uiTask.run | ( | self | ) |
Report necessary measurements the front end.
This method will wait for a 'g' to be pressed, and then subsequently take data until a button press has been identified. It will then send the data through serial to the front end for further data processing.
| def Lab0x03_uiTask.uiTask.transitionTo | ( | self, | |
| newState | |||
| ) |
Method for transitioning states.
The method will reassign the self.state variable when directed to transition.
| newState | Controls which state is the new state for the FSM. |