Ball Balancer Project
|
The main script for running the tasks of the final lab project. More...
Variables | |
main.zFlag = shares.Share(False) | |
The variable, zFlag, is a shared variable. More... | |
main.Data = shares.Share() | |
The variable, Data, is a queue of shared data. More... | |
main.Delta = shares.Share() | |
The variable, Delta, is a queue of shared data. More... | |
main.Velocity = shares.Share() | |
The variable, Velocity, is a queue of shared data. More... | |
main.Duty1 = shares.Share() | |
The variable, Duty1, is a queue of shared data. More... | |
main.Duty2 = shares.Share() | |
The variable, Duty2, is a queue of shared data. More... | |
main.clFlag = shares.Share(False) | |
The variable, clFlag, is a shared variable. More... | |
main.Kp = shares.Share() | |
The variable, Kp, is a shared variable. More... | |
main.Ki = shares.Share() | |
The variable, Ki, is a shared variable. More... | |
main.Kd = shares.Share() | |
The variable, Kd, is a shared variable. More... | |
main.AngVel = shares.Share() | |
The variable, AngVel, is a shared variable. More... | |
main.Position = shares.Share() | |
The variable, Position, is a shared variable. More... | |
main.Contact = shares.Share() | |
The variable, Contact, is a shared variable. More... | |
list | main.taskList |
The main script for running the tasks of the final lab project.
The purpose of this main script is to run the tasks responsible for the functionality of the final project. The shares/queues that will be used in this lab are also primarily defined in this script.
@author Jake Lesher @author Daniel Xu @date 02/16/2022
main.AngVel = shares.Share() |
The variable, AngVel, is a shared variable.
This shared variable is the value of __________
main.clFlag = shares.Share(False) |
The variable, clFlag, is a shared variable.
This shared variable is a boolean that is shared between taskUser and taskController to determine whether or not the motor should be running in closed-loop.
main.Contact = shares.Share() |
The variable, Contact, is a shared variable.
This shared variable is a boolean telling if there is z-contact on the touch panel.
main.Data = shares.Share() |
The variable, Data, is a queue of shared data.
This shared queue is the positional data of the encoder, in radians. It is updated in taskEncoder and recorded in taskUser.
main.Delta = shares.Share() |
The variable, Delta, is a queue of shared data.
This shared queue is the delta data of the encoder in radians. It is updated in taskEncoder and recorded in taskUser.
main.Duty1 = shares.Share() |
The variable, Duty1, is a queue of shared data.
This shared queue is the duty cycle for motor 1 as requested in taskUser. The queue is then read in taskMotor, where it is sent to the motor driver.
main.Duty2 = shares.Share() |
The variable, Duty2, is a queue of shared data.
This shared queue is the current angular velocity in rad/s. It is updated in taskEncoder and recorded in taskUser.
main.Kd = shares.Share() |
The variable, Kd, is a shared variable.
This shared variable is the value of the derivative gain to be used in the closed-loop.
main.Ki = shares.Share() |
The variable, Ki, is a shared variable.
This shared variable is the value of the integral gain to be used in the closed-loop.
main.Kp = shares.Share() |
The variable, Kp, is a shared variable.
This shared variable is the value of the proportional gain to be used in the closed-loop.
main.Position = shares.Share() |
The variable, Position, is a shared variable.
This shared variable is the value position read by the touch panel [mm].
list main.taskList |
main.Velocity = shares.Share() |
The variable, Velocity, is a queue of shared data.
This shared queue is the current angular velocity in rad/s. It is updated in taskEncoder and recorded in taskUser.
main.zFlag = shares.Share(False) |
The variable, zFlag, is a shared variable.
This shared variable is a boolean that is shared between taskUser and taskEncoder to determine whether or not the encoder object needs to be zeroed.