Jpp 19.3.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
JDATABASE::JAHRSValidity Struct Reference

Auxiliary data structure to check validity of AHRS data. More...

#include <JAHRSToolkit.hh>

Public Types

typedef JTOOLS::JRange< double > range_type
 

Public Member Functions

 JAHRSValidity ()
 Default constructor.
 
bool operator() (const JAHRS &parameters) const
 Check validity of AHRS data.
 

Public Attributes

range_type A
 
range_type H
 

Detailed Description

Auxiliary data structure to check validity of AHRS data.

Definition at line 20 of file JAHRSToolkit.hh.

Member Typedef Documentation

◆ range_type

Constructor & Destructor Documentation

◆ JAHRSValidity()

JDATABASE::JAHRSValidity::JAHRSValidity ( )
inline

Default constructor.

This constructor sets default ranges of acceptance of AHRS values.

Definition at line 29 of file JAHRSToolkit.hh.

30 {
31 A = range_type(0.5, 1.5);
32 H = range_type(0.1, 0.6);
33 }
JTOOLS::JRange< double > range_type

Member Function Documentation

◆ operator()()

bool JDATABASE::JAHRSValidity::operator() ( const JAHRS & parameters) const
inline

Check validity of AHRS data.

Parameters
parametersAHRS data
Returns
true if valid; else false

Definition at line 42 of file JAHRSToolkit.hh.

43 {
44 double A0 = parameters.AHRS_A0;
45 double A1 = parameters.AHRS_A1;
46 double A2 = parameters.AHRS_A2;
47
48 double H0 = parameters.AHRS_H0;
49 double H1 = parameters.AHRS_H1;
50 double H2 = parameters.AHRS_H2;
51
52 return (A(sqrt(A0 * A0 + A1 * A1 + A2 * A2)) &&
53 H(sqrt(H0 * H0 + H1 * H1 + H2 * H2)));
54 }

Member Data Documentation

◆ A

range_type JDATABASE::JAHRSValidity::A

Definition at line 57 of file JAHRSToolkit.hh.

◆ H

range_type JDATABASE::JAHRSValidity::H

Definition at line 58 of file JAHRSToolkit.hh.


The documentation for this struct was generated from the following file: