My Project
UI_data1.UI_data Class Reference

Public Member Functions

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...
 

Public Attributes

 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
 

Static Public Attributes

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.
 

Member Function Documentation

◆ transitionTo()

def UI_data1.UI_data.transitionTo (   self,
  newState 
)

transitions from current state to next

Parameters
newStateThe next desire state
Returns
the new state to transition to

The documentation for this class was generated from the following file: