My Project
task1.controllerTask Class Reference

Public Member Functions

def __init__ (self, encPeriod)
 Class that runs the encoder driver. More...
 
def run (self)
 updates encoder object at the requisite interval
 
def transitionTo (self, newState)
 transitions from current state to next More...
 

Public Attributes

 encoder1
 first encoder object channel
 
 encoder2
 second encoder object channel
 
 encPeriod
 period for encoder to update for
 
 lastTime
 TimeStamp for last iteration of the task in microseconds.
 
 nextTime
 timestamp for the next iteration of the task in microseconds More...
 
 state
 initialize state
 
 thisTime
 time when class first starts running in microseconds
 

Static Public Attributes

int S0_UPDATE = 0
 Initiliaze Program with State 0, updates encoder positions.
 
int S1_COLLECT_DATA = 1
 State 1 starts collecting and storing data.
 

Constructor & Destructor Documentation

◆ __init__()

def task1.controllerTask.__init__ (   self,
  encPeriod 
)

Class that runs the encoder driver.

runs the encoder driver and stores values in shares.py.

Parameters
encPerioduser defined period to update encoder positions

Member Function Documentation

◆ transitionTo()

def task1.controllerTask.transitionTo (   self,
  newState 
)

transitions from current state to next

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

Member Data Documentation

◆ nextTime

task1.controllerTask.nextTime

timestamp for the next iteration of the task in microseconds

timestamp for the next iteration of the task


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