sbgECom Library  4.0.1987-stable
C library to interface SBG Systems IMU/AHRS/INS
sbgEComLogShipMotion.h
Go to the documentation of this file.
1 
33 #ifndef SBG_ECOM_LOG_SHIP_MOTION_H
34 #define SBG_ECOM_LOG_SHIP_MOTION_H
35 
36 // sbgCommonLib headers
37 #include <sbgCommon.h>
39 
40 #ifdef __cplusplus
41 extern "C" {
42 #endif
43 
44 //----------------------------------------------------------------------//
45 //- Heave status definitions -//
46 //----------------------------------------------------------------------//
47 
48 #define SBG_ECOM_HEAVE_VALID (0x0001u << 0)
49 #define SBG_ECOM_HEAVE_VEL_AIDED (0x0001u << 1)
50 #define SBG_ECOM_HEAVE_SURGE_SWAY_INCLUDED (0x0001u << 2)
51 #define SBG_ECOM_HEAVE_PERIOD_INCLUDED (0x0001u << 3)
52 #define SBG_ECOM_HEAVE_PERIOD_VALID (0x0001u << 4)
53 #define SBG_ECOM_HEAVE_SWELL_MODE (0x0001u << 5)
55 //----------------------------------------------------------------------//
56 //- Log structure definitions -//
57 //----------------------------------------------------------------------//
58 
68 typedef struct _SbgEComLogShipMotion
69 {
70  uint32_t timeStamp;
71  uint16_t status;
73  float shipMotion[3];
74  float shipAccel[3];
75  float shipVel[3];
77 
78 //----------------------------------------------------------------------//
79 //- Public methods -//
80 //----------------------------------------------------------------------//
81 
90 
99 
100 //----------------------------------------------------------------------//
101 //- DEPRECATED - Used for backward compatibility -//
102 //----------------------------------------------------------------------//
103 
104 SBG_DEPRECATED_TYPEDEF(typedef struct _SbgEComLogShipMotion SbgLogShipMotionData);
105 
106 SBG_DEPRECATED(SbgErrorCode sbgEComBinaryLogParseShipMotionData(SbgStreamBuffer *pStreamBuffer, SbgEComLogShipMotion *pLogData));
107 SBG_DEPRECATED(SbgErrorCode sbgEComBinaryLogWriteShipMotionData(SbgStreamBuffer *pStreamBuffer, const SbgEComLogShipMotion *pLogData));
108 
109 #ifdef __cplusplus
110 }
111 #endif
112 
113 #endif // SBG_ECOM_LOG_SHIP_MOTION_H
Main header for the SBG Systems common C library.
#define SBG_DEPRECATED_TYPEDEF(decl)
Definition: sbgDefines.h:349
SbgErrorCode sbgEComLogShipMotionWriteToStream(const SbgEComLogShipMotion *pLogData, SbgStreamBuffer *pStreamBuffer)
SbgErrorCode sbgEComLogShipMotionReadFromStream(SbgEComLogShipMotion *pLogData, SbgStreamBuffer *pStreamBuffer)
struct _SbgEComLogShipMotion SbgEComLogShipMotion
enum _SbgErrorCode SbgErrorCode
Used to read/write data from/to a memory buffer stream.
SBG_DEPRECATED(SBG_INLINE uint32_t SBG_VERSION(uint8_t major, uint8_t minor, uint8_t rev, uint8_t build))
Definition: sbgEComLogShipMotion.h:69
float shipMotion[3]
Definition: sbgEComLogShipMotion.h:73
float shipAccel[3]
Definition: sbgEComLogShipMotion.h:74
uint16_t status
Definition: sbgEComLogShipMotion.h:71
float mainHeavePeriod
Definition: sbgEComLogShipMotion.h:72
uint32_t timeStamp
Definition: sbgEComLogShipMotion.h:70
float shipVel[3]
Definition: sbgEComLogShipMotion.h:75
Definition: sbgStreamBufferCommon.h:201