mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 22:43:35 +08:00
Add vibration magnitude estimation
This commit is contained in:
@@ -117,6 +117,12 @@ public:
|
||||
*/
|
||||
float* rms() { return _rms; }
|
||||
|
||||
/**
|
||||
* Get the vibration offset
|
||||
* @return the stored vibration offset
|
||||
*/
|
||||
float* vibration_offset() { return _vibe; }
|
||||
|
||||
/**
|
||||
* Print the validator value
|
||||
*
|
||||
@@ -154,6 +160,7 @@ private:
|
||||
float _M2[3]; /**< RMS component value */
|
||||
float _rms[3]; /**< root mean square error */
|
||||
float _value[3]; /**< last value */
|
||||
float _vibe[3]; /**< vibration level, in sensor unit */
|
||||
float _value_equal_count; /**< equal values in a row */
|
||||
DataValidator *_sibling; /**< sibling in the group */
|
||||
const unsigned NORETURN_ERRCOUNT = 10000; /**< if the error count reaches this value, return sensor as invalid */
|
||||
|
||||
Reference in New Issue
Block a user