|
Sentinel
|
Accelerometer Task Implementation. More...
#include "tasks/accelerometerTask.h"#include "SensorData.h"#include "sensors/accelerometer.h"#include "utils/threadsafe_serial.h"#include <Arduino.h>#include <cstring>Macros | |
| #define | QUEUE_SEND_TIMEOUT_MS 1000 |
| #define | NETWORK_CONNECTED_BIT BIT0 |
Functions | |
| void | sendAccelData (const sensor_message_t &msg) |
| Send accelerometer data to the queue. | |
| void | accelTask (void *pvParameters) |
| Accelerometer task function. | |
Variables | |
| QueueHandle_t | dataQueue |
| EventGroupHandle_t | networkEventGroup |
| SemaphoreHandle_t | networkEventMutex |
Accelerometer Task Implementation.
This file contains the implementation of the accelerometer task, which is responsible for
| void accelTask | ( | void * | pvParameters | ) |
Accelerometer task function.
Function for the accelerometer task.
This function initializes the accelerometer and continuously reads data from it. It also handles fall detection and step counting.
| pvParameters |
| void sendAccelData | ( | const sensor_message_t & | msg | ) |
Send accelerometer data to the queue.
| msg |