|
dRonin
adbada4
dRonin firmware
|
Gathers data on the accels to estimate vibration. More...
#include "openpilot.h"#include "physical_constants.h"#include "pios_thread.h"#include "pios_queue.h"#include "accels.h"#include "modulesettings.h"#include "vibrationanalysisoutput.h"#include "vibrationanalysissettings.h"Go to the source code of this file.
Data Structures | |
| struct | VibrationAnalysis_data |
Macros | |
| #define | MAX_QUEUE_SIZE 2 |
| #define | STACK_SIZE_BYTES (200 + 448 + 16 + (2*3*window_size)*0) |
| #define | TASK_PRIORITY PIOS_THREAD_PRIO_LOW |
| #define | SETTINGS_THROTTLING_MS 100 |
| #define | MAX_ACCEL_RANGE 16 |
| #define | FLOAT_TO_FIXED (32768/(MAX_ACCEL_RANGE*2)-1) |
| #define | VIBRATION_ELEMENTS_COUNT 16 |
| #define | MAX_WINDOW_SIZE 1024 |
| #define | USE_SINGLE_INSTANCE_BUFFERS 1 |
Functions | |
| static void | VibrationAnalysisTask (void *parameters) |
| static void | VibrationAnalysisCleanup (void) |
| static int32_t | VibrationAnalysisStart (void) |
| static int32_t | VibrationAnalysisInitialize (void) |
Variables | |
| static struct pios_thread * | taskHandle |
| static TaskInfoRunningElem | task |
| static struct pios_queue * | queue |
| static bool | module_enabled = false |
| static struct VibrationAnalysis_data * | vtd |
Gathers data on the accels to estimate vibration.
Definition in file vibrationanalysis.c.