sbgECom Library
5.3.2276-stable
Interface SBG Systems IMU/AHRS/INS
|
Vibration monitoring FFT management. More...
Go to the source code of this file.
Data Structures | |
struct | _SbgEComVibMonFft |
Macros | |
#define | SBG_ECOM_VIB_MON_FFT_MAX_BIN_COUNT (2048) |
Typedefs | |
typedef struct _SbgEComVibMonFft | SbgEComVibMonFft |
Vibration monitoring FFT management.
Vibration monitoring FFT logs may be sent regularly by a device. This module handles the reassembly of that information for the convenience of the user.
The MIT license
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#define SBG_ECOM_VIB_MON_FFT_MAX_BIN_COUNT (2048) |
Maximum number of bins.
typedef struct _SbgEComVibMonFft SbgEComVibMonFft |
Vibration monitoring FFT, reconstructed.
This is a public structure.
SbgErrorCode sbgEComVibMonFftReadFromStream | ( | SbgEComVibMonFft * | pVibMonFft, |
SbgStreamBuffer * | pStreamBuffer ) |
Parse vibration monitoring FFT data and fill the corresponding structure.
[out] | pVibMonFft | Structure instance to fill. |
[in] | pStreamBuffer | Input stream buffer to read from. |
SbgErrorCode sbgEComVibMonFftWriteToStream | ( | const SbgEComVibMonFft * | pVibMonFft, |
SbgStreamBuffer * | pStreamBuffer ) |
Write vibration monitoring FFT data to the output stream buffer.
[in] | pVibMonFft | Structure instance to write. |
[out] | pStreamBuffer | Output stream buffer to write to. |
SbgEComVibMonAxis sbgEComVibMonFftGetAxis | ( | const SbgEComVibMonFft * | pLogData | ) |
Returns the vibration monitoring axis status.
[in] | pLogData | Log instance. |
SbgEComVibMonWindow sbgEComVibMonFftGetWindow | ( | const SbgEComVibMonFft * | pLogData | ) |
Returns the vibration monitoring window status.
[in] | pLogData | Log instance. |
float sbgEComVibMonFftGetFrequencyFromBinIndex | ( | const SbgEComVibMonFft * | pVibMonFft, |
size_t | binIndex ) |
Get the first frequency of a bin, in Hz.
[in] | pVibMonFft | Vibration monitoring FFT. |
[in] | binIndex | Bin index. |
size_t sbgEComVibMonFftGetBinIndexFromFrequency | ( | const SbgEComVibMonFft * | pVibMonFft, |
float | frequency ) |
Get the index of the bin that contains the frequency.
The frequency must be valid (i.e. positive and smaller than the Nyquist frequency).
[in] | pVibMonFft | Vibration monitoring FFT. |
[in] | frequency | Bin frequency, in Hz. |
float sbgEComVibMonFftGetMagnitudeFromBinIndex | ( | const SbgEComVibMonFft * | pVibMonFft, |
size_t | binIndex ) |
Get the magnitude of a bin, in m.s^-2.
[in] | pVibMonFft | Vibration monitoring FFT. |
[in] | binIndex | Bin index. |
float sbgEComVibMonFftGetMagnitudeFromBinIndexAcfCorrected | ( | const SbgEComVibMonFft * | pVibMonFft, |
size_t | binIndex ) |
Get the magnitude of a bin, with the amplitude correction factor applied, in m.s^-2.
[in] | pVibMonFft | Vibration monitoring FFT. |
[in] | binIndex | Bin index. |
float sbgEComVibMonFftGetMagnitudeFromBinIndexEcfCorrected | ( | const SbgEComVibMonFft * | pVibMonFft, |
size_t | binIndex ) |
Get the magnitude of a bin, with the energy correction factor applied, in m.s^-2.
[in] | pVibMonFft | Vibration monitoring FFT. |
[in] | binIndex | Bin index. |
float sbgEComVibMonFftGetMagnitudeFromFrequency | ( | const SbgEComVibMonFft * | pVibMonFft, |
float | frequency ) |
Get the magnitude of a frequency, in m.s^-2.
The frequency must be valid (i.e. positive and smaller than the Nyquist frequency). The magnitude returned is the magnitude of the bin that contains the frequency.
[in] | pVibMonFft | Vibration monitoring FFT. |
[in] | frequency | Frequency, in Hz. |
float sbgEComVibMonFftGetMagnitudeFromFrequencyAcfCorrected | ( | const SbgEComVibMonFft * | pVibMonFft, |
float | frequency ) |
Get the magnitude of a frequency, with the amplitude correction factor applied, in m.s^-2.
The frequency must be valid (i.e. positive and smaller than the Nyquist frequency). The magnitude returned is the magnitude of the bin that contains the frequency.
[in] | pVibMonFft | Vibration monitoring FFT. |
[in] | frequency | Frequency, in Hz. |
float sbgEComVibMonFftGetMagnitudeFromFrequencyEcfCorrected | ( | const SbgEComVibMonFft * | pVibMonFft, |
float | frequency ) |
Get the magnitude of a frequency, with the energy correction factor applied, in m.s^-2.
The frequency must be valid (i.e. positive and smaller than the Nyquist frequency). The magnitude returned is the magnitude of the bin that contains the frequency.
[in] | pVibMonFft | Vibration monitoring FFT. |
[in] | frequency | Frequency, in Hz. |