Urbanite: Parking aid system
fsm_ultrasound_t Struct Reference

Structure to define the Ultrasound FSM. More...

Data Fields

fsm_t f
 
uint32_t distance_cm
 
bool status
 
bool new_measurement
 
uint32_t ultrasound_id
 
uint32_t distance_arr [FSM_ULTRASOUND_NUM_MEASUREMENTS]
 
uint32_t distance_idx
 

Detailed Description

Structure to define the Ultrasound FSM.

Field Documentation

◆ distance_arr

uint32_t fsm_ultrasound_t::distance_arr[FSM_ULTRASOUND_NUM_MEASUREMENTS]

Array to store the last distance measurements

◆ distance_cm

uint32_t fsm_ultrasound_t::distance_cm

How much time the ultrasound has been pressed

◆ distance_idx

uint32_t fsm_ultrasound_t::distance_idx

Index to store the last distance measurement

◆ f

fsm_t fsm_ultrasound_t::f

Ultrasound FSM

◆ new_measurement

bool fsm_ultrasound_t::new_measurement

Flag to indicate if a new measurement has been completed

◆ status

bool fsm_ultrasound_t::status

Indicate if the ultrasound sensor is active or not

◆ ultrasound_id

uint32_t fsm_ultrasound_t::ultrasound_id

Ultrasound ID. Must be unique.


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