Can Opener - ME 507
taskPhotoInterrupt.cpp File Reference
#include <Arduino.h>
#include <PrintStream.h>
#include "taskPhotoInterrupt.h"
#include "../pins.h"
#include "../shares.h"

Functions

void taskPhotoInterrupt (void *p_params)
 Task: Check Photo Interrupt. More...
 

Detailed Description

Task to check the status of the photo interrupt sensor Lit vs ambient IR light data is compared to determine if a reflective object is present in front of the sensor. Results are put to the canDetected share.

Author
Kyle Van Housen
Date
Dec 02, 2021

Function Documentation

◆ taskPhotoInterrupt()

void taskPhotoInterrupt ( void *  p_params)

Task: Check Photo Interrupt.

Period: 500ms, Priority: 4/4 Check whether or not a reflective object (can) is present on the platform

Parameters
p_paramstask parameters