ZotBins Core
Loading...
Searching...
No Matches
weightTask.hpp
Go to the documentation of this file.
1
8
9#ifndef WEIGHT_TASK_HPP
10#define WEIGHT_TASK_HPP
11
12#include "freertos/FreeRTOS.h"
13#include "freertos/queue.h"
14#include "freertos/task.h"
15#include "task.hpp"
16
17namespace Zotbins
18{
24 class WeightTask : public Task
25 {
26 public:
32 explicit WeightTask(QueueHandle_t &messageQueue);
33
38 void start() override;
39
40 float getWeight();
41
42 private:
49 static void taskFunction(void *task);
50
56 void setup();
57
63 void loop();
64
69 QueueHandle_t &mMessageQueue;
70
71
76 float weight;
77 };
78}
79
80#endif
Task(const char *name, const int priority, const uint32_t stackSize)
Construct a new Task object. Parameters are needed for FreeRTOS.
Definition task.hpp:31
WeightTask(QueueHandle_t &messageQueue)
Construct a new Weight Task object.
Definition weightTask.cpp:33
void start() override
Start execution of Weight Task.
Definition weightTask.cpp:38
Header file for Task class.