Can Opener - ME 507
taskTemp.h File Reference

Header file for the taskTemp task. More...

Go to the source code of this file.

Functions

void taskTemp (void *p_params)
 Task that periodically reads the temperature of the can and puts it into a variable to be read elsewhere. More...
 

Detailed Description

Header file for the taskTemp task.

Author
Ben Bons
Date
Nov 27, 2021

Function Documentation

◆ taskTemp()

void taskTemp ( void *  p_params)

Task that periodically reads the temperature of the can and puts it into a variable to be read elsewhere.

Period: 500ms, Priority: 2/4 This task will read a temperature off of the MCP9808 sensor. The task puts this temperature into a Share<float> object that can be read by the printout task later on. It uses vTaskDelayUntil for high accuracy with the timing, so that this occurs every 0.5 seconds

Parameters
p_paramsAn unused parameter where other parameters could be passed in, but they aren't as that is outside the scope of this course