Data Fields
waste_level_handle Struct Reference

## Data Fields
struct {
float * distance_history_points
uint16_t distance_history_len
uint16_t distance_history_write_idx
} | state
float * | scratch

## Detailed Description

Definition at line 27 of file example_waste_level.c.

## Field Documentation

## ◆ distance_history_len

uint16_t waste_level_handle::distance_history_len

How many valid elements there are in distance_history_points (starting at 0)

Definition at line 36 of file example_waste_level.c.

## ◆ distance_history_points

float* waste_level_handle::distance_history_points

Ring buffer for distance estimations. Has capacity processing_config.median_filter_len

Definition at line 33 of file example_waste_level.c.

## ◆ distance_history_write_idx

uint16_t waste_level_handle::distance_history_write_idx

Write index for the distance_history_points

Definition at line 39 of file example_waste_level.c.

## ◆ scratch

float* waste_level_handle::scratch

Float scratch. Has length == max(sweeps_per_frame, median_filter_len)

Definition at line 43 of file example_waste_level.c.

## ◆ state

struct { ... } waste_level_handle::state

State. Affects output between frames

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

- Src/use_cases/example_apps/example_waste_level.c