![]() |
Mechatronics Portfolio
Logan Williamson's Mechatronics Portfolio and Documentation Repository
|
Main script of ME305 Lab0x02. More...
Variables | |
Lab0x02_main.zFlag = shares.Share(False) | |
Create object zFlag shared between all files. More... | |
Lab0x02_main.faultFlag = shares.Share(False) | |
Create object faultFlag shared between all files. More... | |
Lab0x02_main.DATA = shares.Share(0) | |
Create an object POS shared between all files. More... | |
Lab0x02_main.DEL = shares.Share(0) | |
Create an object DEL shared between all files. More... | |
Lab0x02_main.timDATA = shares.Share(0) | |
Create an object timDATA shared between all files. More... | |
Lab0x02_main.posDATA = shares.Share(0) | |
Create an object posDATA shared between all files. More... | |
Lab0x02_main.speedDATA = shares.Share(0) | |
Create an object speedDATA shared between all files. More... | |
Lab0x02_main.delDATA = shares.Share(0) | |
Create an object delDATA shared between all files. More... | |
Lab0x02_main.duty1 = shares.Share(0) | |
Create an object duty1 shared between all files. More... | |
Lab0x02_main.duty2 = shares.Share(0) | |
Create an object duty2 shared between all files. More... | |
list | Lab0x02_main.taskList |
Main script of ME305 Lab0x02.
This file instantiates the shared flag variables, shared data variables, and controls the task sharing between taskEncoder.py and taskUser.py.
Lab0x02_main.DATA = shares.Share(0) |
Create an object POS shared between all files.
This is the value of position that is written in the taskEncoder and printed in the taskUser when prompted.
Lab0x02_main.DEL = shares.Share(0) |
Create an object DEL shared between all files.
This is the value of delta that is written in the taskEncoder and printed in the taskUser when prompted
Lab0x02_main.delDATA = shares.Share(0) |
Create an object delDATA shared between all files.
This is the value of encoder velocity that is written in the taskEncoder.
Lab0x02_main.duty1 = shares.Share(0) |
Create an object duty1 shared between all files.
This object is the duty cycle for the motor1 object instantiated in taskMotor.py
Lab0x02_main.duty2 = shares.Share(0) |
Create an object duty2 shared between all files.
This object is the duty cycle for the motor1 object instantiated in taskMotor.py
Lab0x02_main.faultFlag = shares.Share(False) |
Create object faultFlag shared between all files.
Used as a flag between files to communicate when a fault related interrupt request is detected. Used in order to communicate between tasks taskUser.py and taskMotor.py to prompt the user to clear the fault and re-enable the motor.
Lab0x02_main.posDATA = shares.Share(0) |
Create an object posDATA shared between all files.
This is the value of position that is written in the taskEncoder and indexed into the DATA array in taskUser when the user initiates the data recording functionality of taskUser.
Lab0x02_main.speedDATA = shares.Share(0) |
Create an object speedDATA shared between all files.
This is the value of velocity that is written in the taskEncoder and can be printed upon pressing 'v' or 'V' by taskUser.py.
list Lab0x02_main.taskList |
Lab0x02_main.timDATA = shares.Share(0) |
Create an object timDATA shared between all files.
This is the value of time that is written in the taskEncoder and indexed into the DATA array in taskUser when the user initiates the data recording functionality of taskUser.
Lab0x02_main.zFlag = shares.Share(False) |
Create object zFlag shared between all files.
Used as a flag between files to communicate when z or Z is pressed. also used in order to communicate between tasks.