CALPOLY MECHATRONICS
Documentation for all Mechatronics Labs
main.py File Reference

This module instantiates all other tasks and runs them using a priority scheduler. More...

Variables

 main.taskENC
 The cotask.Task object used to run the encoder task. More...
 
 main.taskTP
 The cotask.Task object used to run the touch panel task. More...
 
 main.taskC
 The cotask.Task object used to run the controller task. More...
 
 main.taskMOT
 The cotask.Task object used to run the motor task. More...
 
 main.taskUI
 The cotask.Task object used to run the user interface task. More...
 
 main.taskDATA
 The cotask.Task object used to run the data collection task. More...
 
 main.vcp = pyb.USB_VCP ()
 

Detailed Description

This module instantiates all other tasks and runs them using a priority scheduler.

Each task is imported an instantiated as a cotask.Task object so that cotask.task_list can run each task at different intervals using a priority scheduler. For more information on each task and how they communicate refer to ME405 Final Project.
source code: https://bitbucket.org/eliotBriefer/me405_term_project/src/master/main.py

Author
Eliot Briefer and Nick Greco
Date
6/11/2021

Variable Documentation

◆ taskC

main.taskC
Initial value:
1 = cotask.Task(controllerTaskFun, name = 'Controller_Task', priority = 3,
2  period = 20, profile = True, trace = False)
This class implements behavior common to tasks in a cooperative multitasking system which runs in Mic...
Definition: cotask.py:49

The cotask.Task object used to run the controller task.

◆ taskDATA

main.taskDATA
Initial value:
1 = cotask.Task(dataCollectionTask, name = 'Data_Task', priority = 0,
2  period = 15, profile = True, trace = False)

The cotask.Task object used to run the data collection task.

◆ taskENC

main.taskENC
Initial value:
1 = cotask.Task(encoderTaskFun, name = 'Encoder_Task', priority = 3,
2  period = 20, profile = True, trace = False)

The cotask.Task object used to run the encoder task.

◆ taskMOT

main.taskMOT
Initial value:
1 = cotask.Task(motorTaskFun, name = 'Motor_Task', priority = 3,
2  period = 20, profile = True, trace = False)

The cotask.Task object used to run the motor task.

◆ taskTP

main.taskTP
Initial value:
1 = cotask.Task(touchPanelTaskFun, name = 'TouchPanel_Task', priority = 3,
2  period = 20, profile = True, trace = False)

The cotask.Task object used to run the touch panel task.

◆ taskUI

main.taskUI
Initial value:
1 = cotask.Task(userInterfaceFun, name = 'UI_Task', priority = 1,
2  period = 10, profile = True, trace = False)

The cotask.Task object used to run the user interface task.