Zap'Em Blast'Em Robots
robots that play laser tag!
Loading...
Searching...
No Matches
PhotoresistorTask Struct Reference

Structure for tracking photoresistor task state and config. More...

#include <photoresistor_task.h>

Data Fields

int32_t state
int32_t num_states
int32_t hit_flag
int32_t adc_val
int32_t thresh
int32_t zero
photoresistor_fcn_t state_list []

Detailed Description

Structure for tracking photoresistor task state and config.

Holds ADC value, thresholds, state index, and a list of function pointers for state execution.

Field Documentation

◆ adc_val

int32_t adc_val

Current ADC reading

◆ hit_flag

int32_t hit_flag

Set when hit is detected

◆ num_states

int32_t num_states

Number of valid states

◆ state

int32_t state

Current state index

◆ state_list

photoresistor_fcn_t state_list[]

Array of state functions

◆ thresh

int32_t thresh

Threshold for hit detect

◆ zero

int32_t zero

Zero offset for calibration


The documentation for this struct was generated from the following file: