|
def | __init__ (self) |
|
def | run (self) |
| runs the finite state machine of collecting Data on Nucleo
|
|
def | transitionTo (self, newState) |
| transitions from current state to next More...
|
|
|
| state |
| Set state equal to 1.
|
|
| myuart |
| Set UART communication.
|
|
| time |
| Time array that hold data for 30 secs to plot.
|
|
| value |
| Data array.
|
|
| idx |
| iteration of list
|
|
| start |
| start recording time
|
|
| key |
|
| now |
| time updated when state is collecting data
|
|
| duration |
| duration of when G is clicked and current time in microsec
|
|
| valueNum |
| collect value for each index of time
|
|
|
int | S0_WAITING = 0 |
| Initiliaze Program with State 0, waiting for G to be pushed.
|
|
int | S1_COLLECT_DATA = 1 |
| State 1 starts collecting and storing data.
|
|
int | S2_SEND_DATA = 2 |
| State 2 sends data to PC.
|
|
◆ transitionTo()
def UI_data1.UI_data.transitionTo |
( |
|
self, |
|
|
|
newState |
|
) |
| |
transitions from current state to next
- Parameters
-
newState | The next desire state |
- Returns
- the new state to transition to
The documentation for this class was generated from the following file: