EMBER 0.1
EMBER is a fire suppression system with a thermal IR camera for hot blob detection on a pan/tilt mechanism with a solenoid for commanded water flow.
Loading...
Searching...
No Matches
task_stateMachine.cpp File Reference

State machine task that manages system operation modes. More...

#include "PrintStream.h"
#include "shares.h"

Macros

#define CPP   17.5
#define WIDTH   32
#define HEIGHT   24

Functions

void task_stateMachine (void *p_params)
 State machine task.

Detailed Description

State machine task that manages system operation modes.

Author
Jackson Cordova, GPT5-mini
Date
December 2025

Function Documentation

◆ task_stateMachine()

void task_stateMachine ( void * p_params)

State machine task.

This task manages the different states of the system. State 0 is an initialization state which sets all shares to default. State 1 is a scanning state where the system looks back and forth for hot spots. State 2 is a tracking state where the system points the thermal camera and hose towards the detected hot spot and activates the spray mechanism. The task period is set to 100 ms.

Parameters
p_paramsnot used and should be set to void in the xTaskCreate call