ME 305 Group 6 Documentation
Functions | Variables
taskMotor_05.py File Reference

For running the motors. More...

Functions

def taskMotor_05.taskMotorFcn (str taskName, int period, shares_05.Share_05 roll_target_duty, shares_05.Share_05 pitch_target_duty)
 Function to execute the state management functionality for the motor tasks. More...
 

Variables

 taskMotor_05.S0_INIT = micropython.const(0)
 Maps state 0 to a more readable const S0_INIT.
 
 taskMotor_05.S1_COMMAND = micropython.const(1)
 Maps state 1 to a more readable const S1_COMMAND.
 

Detailed Description

For running the motors.

Continuously updates the motors with desired duty cycles after initialization.

Author
Caleb Savard
Chris Linthacum
Date
February 23, 2022

Function Documentation

◆ taskMotorFcn()

def taskMotor_05.taskMotorFcn ( str  taskName,
int  period,
shares_05.Share_05  roll_target_duty,
shares_05.Share_05  pitch_target_duty 
)

Function to execute the state management functionality for the motor tasks.

Function manages states for the management of motor functions. Performs all motor related processes including setting motor duty cycle, initialization, and clearing faults.

Parameters
taskNameBrief string to describe the instance of the function. Useful for debug purposes.
periodPeriod with which to run the function and update/execute state logic.
roll_target_dutyShared data object to encapsulate the desired duty cycle of motor 1.
pitch_target_dutyShared data object to encapsulate the desired duty cycle of motor 2.