| 
    Jpp master_rocky-44-g75b7c4f75
    
   the software that should make you happy 
   | 
 
Data structure for compass in three dimensions. More...
#include <JCompass.hh>
  
Public Member Functions | |
| JCompass () | |
| Default constructor.   | |
| JCompass (const double yaw, const double pitch, const double roll) | |
| Constructor.   | |
| JCompass (const JAHRS &data, const JAHRSCalibration &calibration) | |
| Constructor.   | |
| JCompass (const JQuaternion3D &Q) | |
| Constructor.   | |
| const JCompass & | getCompass () const | 
| Get compass.   | |
| void | setCompass (const JCompass &compass) | 
| Set compass.   | |
| JRotation3D | getRotation () const | 
| Get rotation matrix.   | |
| JQuaternion3D | getQuaternion () const | 
| Get quaternion.   | |
| double | getYaw () const | 
| Get yaw compass.   | |
| double | getPitch () const | 
| Get pitch compass.   | |
| double | getRoll () const | 
| Get roll compass.   | |
| bool | equals (const JCompass &compass, const double precision=std::numeric_limits< double >::min()) const | 
| Check equality.   | |
| void | correct (const double declination, const double meridian) | 
| Correct compass for magnetic declination and meridian convergence angle.   | |
Protected Attributes | |
| double | yaw | 
| double | pitch | 
| double | roll | 
Friends | |
| std::istream & | operator>> (std::istream &in, JCompass &compass) | 
| Read compasss from input.   | |
| std::ostream & | operator<< (std::ostream &out, const JCompass &compass) | 
| Write compasss to output.   | |
| JReader & | operator>> (JReader &in, JCompass &compass) | 
| Read compasss from input.   | |
| JWriter & | operator<< (JWriter &out, const JCompass &compass) | 
| Write compasss to output.   | |
Data structure for compass in three dimensions.
Note that the z-axis of the KM3NeT reference system points up.
So, the yaw angle, measured by the compass is measured from North to East (since in the compass system z-axis points down).
Note also that the sign of the angle JCompass::pitch is maintained and the signs of the angles JCompass::yaw and JCompass::roll inverted when converting to/from a rotation matrix or quaternion.
This class implements the JMATH::JMath and JLANG::JEquals interfaces.
Definition at line 49 of file JCompass.hh.
      
  | 
  inline | 
Default constructor.
Definition at line 56 of file JCompass.hh.
      
  | 
  inline | 
      
  | 
  inline | 
Constructor.
| data | AHRS data | 
| calibration | AHRS calibration | 
Definition at line 85 of file JCompass.hh.
      
  | 
  inline | 
Constructor.
| Q | quaternion | 
Definition at line 135 of file JCompass.hh.
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
Get rotation matrix.
Definition at line 184 of file JCompass.hh.
      
  | 
  inline | 
Get quaternion.
Definition at line 201 of file JCompass.hh.
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
Check equality.
| compass | compass | 
| precision | numerical precision | 
Definition at line 259 of file JCompass.hh.
      
  | 
  inline | 
Correct compass for magnetic declination and meridian convergence angle.
| declination | magnetic declination [rad] | 
| meridian | meridian convergence angle [rad] | 
Definition at line 274 of file JCompass.hh.
      
  | 
  friend | 
Read compasss from input.
| in | input stream | 
| compass | compasss | 
Definition at line 288 of file JCompass.hh.
      
  | 
  friend | 
Write compasss to output.
| out | output stream | 
| compass | compass | 
Definition at line 303 of file JCompass.hh.
Read compasss from input.
| in | reader | 
| compass | compasss | 
Definition at line 318 of file JCompass.hh.
Write compasss to output.
| out | writer | 
| compass | compasss | 
Definition at line 335 of file JCompass.hh.
      
  | 
  protected | 
Definition at line 346 of file JCompass.hh.
      
  | 
  protected | 
Definition at line 347 of file JCompass.hh.
      
  | 
  protected | 
Definition at line 348 of file JCompass.hh.