Browse Source
- add min/max frequency parameters for peak detection (IMU_GYRO_FFT_MIN, IMU_GYRO_FFT_MAX) - remove full FFT debug logging - fix Quinn's second estimator - log sensor_gyro_fft - fake_gyro use PX4Gyroscopesbg
Daniel Agar
4 years ago
committed by
GitHub
11 changed files with 220 additions and 92 deletions
@ -1,23 +0,0 @@
@@ -1,23 +0,0 @@
|
||||
uint64 timestamp # time since system start (microseconds) |
||||
uint64 timestamp_sample |
||||
|
||||
uint32 device_id # unique device ID for the sensor that does not change between power cycles |
||||
|
||||
float32 dt # delta time between samples (microseconds) |
||||
|
||||
uint16 samples # number of valid samples |
||||
|
||||
float32 resolution_hz |
||||
|
||||
int16[128] fft |
||||
|
||||
uint16 peak_index |
||||
uint16 peak_index_quinns |
||||
|
||||
float32 peak_frequency |
||||
float32 peak_frequency_quinns |
||||
|
||||
uint8 AXIS_X = 0 |
||||
uint8 AXIS_Y = 1 |
||||
uint8 AXIS_Z = 2 |
||||
uint8 axis |
@ -0,0 +1,54 @@
@@ -0,0 +1,54 @@
|
||||
/****************************************************************************
|
||||
* |
||||
* Copyright (c) 2020 PX4 Development Team. All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions |
||||
* are met: |
||||
* |
||||
* 1. Redistributions of source code must retain the above copyright |
||||
* notice, this list of conditions and the following disclaimer. |
||||
* 2. Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in |
||||
* the documentation and/or other materials provided with the |
||||
* distribution. |
||||
* 3. Neither the name PX4 nor the names of its contributors may be |
||||
* used to endorse or promote products derived from this software |
||||
* without specific prior written permission. |
||||
* |
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
||||
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE |
||||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, |
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, |
||||
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS |
||||
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED |
||||
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN |
||||
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
||||
* POSSIBILITY OF SUCH DAMAGE. |
||||
* |
||||
****************************************************************************/ |
||||
|
||||
/**
|
||||
* IMU gyro FFT minimum frequency. |
||||
* |
||||
* @min 1 |
||||
* @max 1000 |
||||
* @unit Hz |
||||
* @reboot_required true |
||||
* @group Sensors |
||||
*/ |
||||
PARAM_DEFINE_FLOAT(IMU_GYRO_FFT_MIN, 30.0f); |
||||
|
||||
/**
|
||||
* IMU gyro FFT maximum frequency. |
||||
* |
||||
* @min 1 |
||||
* @max 1000 |
||||
* @unit Hz |
||||
* @reboot_required true |
||||
* @group Sensors |
||||
*/ |
||||
PARAM_DEFINE_FLOAT(IMU_GYRO_FFT_MAX, 200.0f); |
Loading…
Reference in new issue