Lucas Murray ME 305 Portfolio
|
Runs tasks sent by the taskUser file and keeps the encoder updated. More...
Functions | |
def | taskEncoder.taskEncoderFcn (taskName, period, zFlag, data, delta) |
Performs the tasks as determined by the taskUser file. More... | |
Runs tasks sent by the taskUser file and keeps the encoder updated.
Acts as a background function file controlling the encoder for the primary user interface so that the user interface does not have to perform tasks directly. It will continuously update the encoder every 10 milliseconds.
/n The State Transition Diagram for taskEncoder can be seen here.
/n Source Code: https://bitbucket.org/lmurray03/me305_lucas_murray/src/master/Lab%200x02/taskEncoder.py
def taskEncoder.taskEncoderFcn | ( | taskName, | |
period, | |||
zFlag, | |||
data, | |||
delta | |||
) |
Performs the tasks as determined by the taskUser file.
Interfaces with the taskUser file through the use of the shared flag parameters, keeping the encoder updated and performing the input commands
taskName | The name of the task a string |
period | The period of the task in microseconds as an integer |
zFlag | Boolean variable shared between taskUser and taskEncoder for the zero command |
data | Tuple data shared between taskUser and taskEncoder for data collection |
delta | Tuple shared between taskUser and taskEncoder that stores delta data |