![]() |
Mechatronics Portfolio
Logan Williamson's Mechatronics Portfolio and Documentation Repository
|
Main script of ME305 Lab0x03. More...
Variables | |
Lab0x03_main.zFlag = shares.Share(False) | |
Create object zFlag shared between all files. More... | |
Lab0x03_main.faultFlag = shares.Share(False) | |
Create object zFlag shared between all files. More... | |
Lab0x03_main.timDATA = shares.Share(0) | |
Create an object timDATA shared between all files. More... | |
Lab0x03_main.posDATA = shares.Share(0) | |
Create an object posDATA shared between all files. More... | |
Lab0x03_main.delDATA = shares.Share(0) | |
Create an object delDATA shared between all files. More... | |
Lab0x03_main.DATA = shares.Share(0) | |
Create an object DATA shared between all files. More... | |
Lab0x03_main.speedDATA = shares.Share(0) | |
Lab0x03_main.duty1 = shares.Share(0) | |
Create an object duty1 shared between all files. More... | |
Lab0x03_main.duty2 = shares.Share(0) | |
Create an object DATA shared between all files. More... | |
list | Lab0x03_main.taskList |
Main script of ME305 Lab0x03.
This file instantiates the shared flag variables, shared data variables, and controls the task sharing between taskEncoder.py and taskUser.py.
Lab0x03_main.DATA = shares.Share(0) |
Create an object DATA shared between all files.
This is a tuple that records the data and the position. used when user prompts to ask for 30 second data collection. This is shared with taskUser and formatted to print in an array.
Lab0x03_main.delDATA = shares.Share(0) |
Create an object delDATA shared between all files.
This is the value of delta that is written in the taskEncoder and printed in the taskUser when prompted
Lab0x03_main.duty1 = shares.Share(0) |
Create an object duty1 shared between all files.
This is a value that will be passed into the motor.Motor objects for the purpose of setting the duty cycle (and by extension, the speed) of the
Lab0x03_main.duty2 = shares.Share(0) |
Create an object DATA shared between all files.
This is a tuple that records the data and the position. used when user prompts to ask for 30 second data collection. This is shared with taskUser and formatted to print in an array.
Lab0x03_main.faultFlag = 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.
Lab0x03_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 printed in the taskUser when prompted
list Lab0x03_main.taskList |
Lab0x03_main.timDATA = shares.Share(0) |
Create an object timDATA shared between all files.
This is the value of time used in taskEncoder to keep track of time. Set to timDATA.write(ticks_ms()-init_time)
Lab0x03_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.