![]() |
Can Opener - ME 507
|
Task for recording temperature from the MCP9808 temperature sensor. More...
#include <Arduino.h>#include <Wire.h>#include "STM32FreeRTOS.h"#include "PrintStream.h"#include "taskshare.h"#include "../lib/sensorLib/TempSensor.h"#include "shares.h"#include "taskTemp.h"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... | |
Task for recording temperature from the MCP9808 temperature sensor.
This task will record the current temperature of the can every 0.5 seconds. The task is build to work with the FreeRTOS system.
| 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
| p_params | An unused parameter where other parameters could be passed in, but they aren't as that is outside the scope of this course |