|
|
#include <math.h>#include <stdbool.h>#include <stdint.h>#include <stdio.h>#include <stdlib.h>#include "acc_algorithm.h"#include "acc_definitions_a121.h"#include "acc_detector_distance.h"#include "acc_hal_definitions_a121.h"#include "acc_hal_integration_a121.h"#include "acc_integration.h"#include "acc_integration_log.h"#include "acc_rss_a121.h"#include "acc_sensor.h"#include "acc_version.h"Go to the source code of this file.
Data Structures | |
| struct | acc_ref_app_tank_level_config_t |
| struct | app_context_t |
| struct | app_result_t |
| #define CLOSE_RANGE_START 0.07f |
Definition at line 27 of file ref_app_tank_level.c.
| #define DEFAULT_PRESET_CONFIG TANK_LEVEL_PRESET_CONFIG_SMALL_TANK |
Definition at line 115 of file ref_app_tank_level.c.
| #define DEFAULT_UPDATE_RATE 1.0f |
Definition at line 26 of file ref_app_tank_level.c.
| #define LARGE_TANK_CLOSE_RANGE_LEAKAGE_CANCELLATION false |
Definition at line 78 of file ref_app_tank_level.c.
| #define LARGE_TANK_FIXED_AMPLITUDE_THRESHOLD 100.0f |
Definition at line 74 of file ref_app_tank_level.c.
| #define LARGE_TANK_FIXED_STRENGTH_THRESHOLD 5.0f |
Definition at line 75 of file ref_app_tank_level.c.
| #define LARGE_TANK_MAX_PROFILE ACC_CONFIG_PROFILE_5 |
Definition at line 69 of file ref_app_tank_level.c.
| #define LARGE_TANK_MAX_STEP_LENGTH 0U |
Definition at line 68 of file ref_app_tank_level.c.
| #define LARGE_TANK_MEDIAN_FILTER_LENGTH 1U |
Definition at line 64 of file ref_app_tank_level.c.
| #define LARGE_TANK_NUM_FRAMES_REC 50U |
Definition at line 70 of file ref_app_tank_level.c.
| #define LARGE_TANK_NUM_MEDIANS_TO_AVERAGE 1U |
Definition at line 65 of file ref_app_tank_level.c.
| #define LARGE_TANK_PEAK_SORTING ACC_DETECTOR_DISTANCE_PEAK_SORTING_STRONGEST |
Definition at line 71 of file ref_app_tank_level.c.
| #define LARGE_TANK_RANGE_END_M 15.0f |
Definition at line 67 of file ref_app_tank_level.c.
| #define LARGE_TANK_RANGE_START_M 0.1f |
Definition at line 66 of file ref_app_tank_level.c.
| #define LARGE_TANK_REFLECTOR_SHAPE ACC_DETECTOR_DISTANCE_REFLECTOR_SHAPE_PLANAR |
Definition at line 72 of file ref_app_tank_level.c.
| #define LARGE_TANK_SIGNAL_QUALITY 20.0f |
Definition at line 77 of file ref_app_tank_level.c.
| #define LARGE_TANK_THRESHOLD_METHOD ACC_DETECTOR_DISTANCE_THRESHOLD_METHOD_CFAR |
Definition at line 73 of file ref_app_tank_level.c.
| #define LARGE_TANK_THRESHOLD_SENSITIVITY 0.0f |
Definition at line 76 of file ref_app_tank_level.c.
| #define MEDIUM_TANK_CLOSE_RANGE_LEAKAGE_CANCELLATION false |
Definition at line 61 of file ref_app_tank_level.c.
| #define MEDIUM_TANK_FIXED_AMPLITUDE_THRESHOLD 100.0f |
Definition at line 57 of file ref_app_tank_level.c.
| #define MEDIUM_TANK_FIXED_STRENGTH_THRESHOLD 3.0f |
Definition at line 58 of file ref_app_tank_level.c.
| #define MEDIUM_TANK_MAX_PROFILE ACC_CONFIG_PROFILE_5 |
Definition at line 52 of file ref_app_tank_level.c.
| #define MEDIUM_TANK_MAX_STEP_LENGTH 0U |
Definition at line 51 of file ref_app_tank_level.c.
| #define MEDIUM_TANK_MEDIAN_FILTER_LENGTH 3U |
Definition at line 47 of file ref_app_tank_level.c.
| #define MEDIUM_TANK_NUM_FRAMES_REC 50U |
Definition at line 53 of file ref_app_tank_level.c.
| #define MEDIUM_TANK_NUM_MEDIANS_TO_AVERAGE 1U |
Definition at line 48 of file ref_app_tank_level.c.
| #define MEDIUM_TANK_PEAK_SORTING ACC_DETECTOR_DISTANCE_PEAK_SORTING_STRONGEST |
Definition at line 54 of file ref_app_tank_level.c.
| #define MEDIUM_TANK_RANGE_END_M 6.0f |
Definition at line 50 of file ref_app_tank_level.c.
| #define MEDIUM_TANK_RANGE_START_M 0.05f |
Definition at line 49 of file ref_app_tank_level.c.
| #define MEDIUM_TANK_REFLECTOR_SHAPE ACC_DETECTOR_DISTANCE_REFLECTOR_SHAPE_PLANAR |
Definition at line 55 of file ref_app_tank_level.c.
| #define MEDIUM_TANK_SIGNAL_QUALITY 19.0f |
Definition at line 60 of file ref_app_tank_level.c.
| #define MEDIUM_TANK_THRESHOLD_METHOD ACC_DETECTOR_DISTANCE_THRESHOLD_METHOD_CFAR |
Definition at line 56 of file ref_app_tank_level.c.
| #define MEDIUM_TANK_THRESHOLD_SENSITIVITY 0.0f |
Definition at line 59 of file ref_app_tank_level.c.
| #define SENSOR_ID 1U |
Definition at line 24 of file ref_app_tank_level.c.
| #define SENSOR_TIMEOUT_MS 1000U |
Definition at line 25 of file ref_app_tank_level.c.
| #define SMALL_TANK_CLOSE_RANGE_LEAKAGE_CANCELLATION false |
Definition at line 44 of file ref_app_tank_level.c.
| #define SMALL_TANK_FIXED_AMPLITUDE_THRESHOLD 100.0f |
Definition at line 40 of file ref_app_tank_level.c.
| #define SMALL_TANK_FIXED_STRENGTH_THRESHOLD 0.0f |
Definition at line 41 of file ref_app_tank_level.c.
| #define SMALL_TANK_MAX_PROFILE ACC_CONFIG_PROFILE_3 |
Definition at line 35 of file ref_app_tank_level.c.
| #define SMALL_TANK_MAX_STEP_LENGTH 12U |
Definition at line 34 of file ref_app_tank_level.c.
| #define SMALL_TANK_MEDIAN_FILTER_LENGTH 3U |
Definition at line 30 of file ref_app_tank_level.c.
| #define SMALL_TANK_NUM_FRAMES_REC 50U |
Definition at line 36 of file ref_app_tank_level.c.
| #define SMALL_TANK_NUM_MEDIANS_TO_AVERAGE 2U |
Definition at line 31 of file ref_app_tank_level.c.
| #define SMALL_TANK_PEAK_SORTING ACC_DETECTOR_DISTANCE_PEAK_SORTING_CLOSEST |
Definition at line 37 of file ref_app_tank_level.c.
| #define SMALL_TANK_RANGE_END_M 0.5f |
Definition at line 33 of file ref_app_tank_level.c.
| #define SMALL_TANK_RANGE_START_M 0.03f |
Definition at line 32 of file ref_app_tank_level.c.
| #define SMALL_TANK_REFLECTOR_SHAPE ACC_DETECTOR_DISTANCE_REFLECTOR_SHAPE_PLANAR |
Definition at line 38 of file ref_app_tank_level.c.
| #define SMALL_TANK_SIGNAL_QUALITY 3.0f |
Definition at line 43 of file ref_app_tank_level.c.
| #define SMALL_TANK_THRESHOLD_METHOD ACC_DETECTOR_DISTANCE_THRESHOLD_METHOD_CFAR |
Definition at line 39 of file ref_app_tank_level.c.
| #define SMALL_TANK_THRESHOLD_SENSITIVITY 0.0f |
Definition at line 42 of file ref_app_tank_level.c.
| enum peak_status_t |
| Enumerator | |
|---|---|
| PEAK_STATUS_IN_RANGE | |
| PEAK_STATUS_NO_DETECTION | |
| PEAK_STATUS_OVERFLOW | |
| PEAK_STATUS_OUT_OF_RANGE | |
Definition at line 146 of file ref_app_tank_level.c.
| Enumerator | |
|---|---|
| TANK_LEVEL_PRESET_CONFIG_NONE | |
| TANK_LEVEL_PRESET_CONFIG_SMALL_TANK | |
| TANK_LEVEL_PRESET_CONFIG_MEDIUM_TANK | |
| TANK_LEVEL_PRESET_CONFIG_LARGE_TANK | |
Definition at line 107 of file ref_app_tank_level.c.
| int acconeer_main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Assembly test example.
Touchless button application.
Tank level reference application.
Smart presence reference application.
Parking application.
Breathing example application.
Waste level application.
Vibration example.
Surface velocity example application.
Service subsweeps example.
Service multple configurations example.
Low power service example.
Service sensor calibration caching example.
Service example.
Processing subtract adaptive background example.
Processing static presence example.
Processing peak interpolation example.
Processing noncoherent mean example.
Processing coherent mean example.
Processing amplitude example.
hand motion application
Detector presence example with multiple configurations.
Low power detector presence example.
Detector presence example.
Detector distance example with iq data print.
Distance detector low power example.
Detector distance with calibration caching example.
Detector distance example.
Control helper example.
Cargo application.
Test if measure on wake up is enable Do a measurement if the the detector is ready (configured and calibrated)
Test if measure on wake up is enable Do a measurement if the the detector is ready (configured and calibrated)
Detector filters and states are reset on prepare (reconfiguration) to avoid risk of false detections when switching back to a zone.
Detector filters and states are reset on prepare (reconfiguration) to avoid risk of false detections when switching back to a zone.
Vibration example configuration
Definition at line 190 of file ref_app_tank_level.c.
|
static |
Definition at line 313 of file ref_app_tank_level.c.
|
static |
Definition at line 568 of file ref_app_tank_level.c.
|
static |
Definition at line 510 of file ref_app_tank_level.c.
|
static |
Definition at line 338 of file ref_app_tank_level.c.
|
static |
Definition at line 332 of file ref_app_tank_level.c.
|
static |
Definition at line 416 of file ref_app_tank_level.c.
|
static |
Definition at line 618 of file ref_app_tank_level.c.
|
static |
Definition at line 640 of file ref_app_tank_level.c.
|
static |
Definition at line 735 of file ref_app_tank_level.c.
|
static |
Definition at line 657 of file ref_app_tank_level.c.
|
static |
Definition at line 471 of file ref_app_tank_level.c.
|
static |
Definition at line 344 of file ref_app_tank_level.c.
|
static |
Definition at line 540 of file ref_app_tank_level.c.