ME 305 Group 6 Documentation
|
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. | |
For running the motors.
Continuously updates the motors with desired duty cycles after initialization.
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.
taskName | Brief string to describe the instance of the function. Useful for debug purposes. |
period | Period with which to run the function and update/execute state logic. |
roll_target_duty | Shared data object to encapsulate the desired duty cycle of motor 1. |
pitch_target_duty | Shared data object to encapsulate the desired duty cycle of motor 2. |