Can Opener - ME 507
taskMoveMachine.h File Reference
#include "STM32FreeRTOS.h"
#include <Arduino.h>
#include "PrintStream.h"
#include "taskshare.h"
#include "../lib/motorDriverLib/MotorDriver.h"
#include "../lib/motorDriverLib/StepperDriver.h"
#include "../shares.h"
#include "../pins.h"

Go to the source code of this file.

Functions

void taskMoveMachine (void *p_params)
 Task: Move Machine. More...
 

Detailed Description

Machine movement task .h file

Author
Hunter Morse
Date
Nov 30, 2021

Function Documentation

◆ taskMoveMachine()

void taskMoveMachine ( void *  p_params)

Task: Move Machine.

Period: 10ms, Priority: 3/4 Task dictates the movement of the machine through 8 distinct states. State 0: Check if can detected in machine 1: Move head down until touching top of can 2: Back of slightly from the top of the can 3: Rotate base to find the tab 4: Open the can 5: Move head up for easy removal of the can 6: Move the opening motor back to position 7: Move the base back to position

Parameters
p_paramstask parameters