Sensor Fusion Library 0.6.1
Orientation sensing for Espressif (ESP32, ESP8266) processors
Loading...
Searching...
No Matches
Functions
fusion_testing.c File Reference

ApplyPerturbation function used to analyze dynamic performance. More...

#include <stdlib.h>
#include "sensor_fusion.h"
#include "control.h"
#include "build.h"
Include dependency graph for fusion_testing.c:

Go to the source code of this file.

Functions

void ApplyPerturbation (SensorFusionGlobals *sfg)
 

Detailed Description

ApplyPerturbation function used to analyze dynamic performance.

(used to be debug.h: name conflict with EEPROM lib)

The ApplyPerturbation function applies a user-specified step function to prior fusion results which is then "released" in the next fusion cycle. When used in conjustion with the NXP Sensor Fusion Toolbox, this provides a visual indication of the dynamic behavior of the library.

Also included is some code for white-box testing within the IAR debug environment. It can be used to evaluate propagation delays for tilt and eCompass algorithms. It makes no sense with regard to "Rotation", because that algorithm is simple gyro integration, and will never return to the starting point. It will also overestimate delays for the kalman filters, as there is no actual gyro data corresponding to the simulated step function. So those filters are not operating as they would in the normal world.

Definition in file fusion_testing.c.

Function Documentation

◆ ApplyPerturbation()

void ApplyPerturbation ( SensorFusionGlobals sfg)

The ApplyPerturbation function applies a user-specified step function to prior fusion results which is then "released" in the next fusion cycle. When used in conjustion with the NXP Sensor Fusion Toolbox, this provides a visual indication of the dynamic behavior of the library. This function is normally involved via the "sfg." global pointer.

Definition at line 36 of file fusion_testing.c.