sbgECom  1.11.920-stable
sbgEComBinaryLogShipMotion.h
Go to the documentation of this file.
1 
20 #ifndef __SBG_ECOM_BINARY_LOG_SHIP_MOTION_H__
21 #define __SBG_ECOM_BINARY_LOG_SHIP_MOTION_H__
22 
23 #include <sbgCommon.h>
24 #include <streamBuffer/sbgStreamBuffer.h>
25 
26 //----------------------------------------------------------------------//
27 //- Heave status definitions -//
28 //----------------------------------------------------------------------//
29 
30 #define SBG_ECOM_HEAVE_VALID (0x0001u << 0)
31 #define SBG_ECOM_HEAVE_VEL_AIDED (0x0001u << 1)
32 #define SBG_ECOM_HEAVE_SURGE_SWAY_INCLUDED (0x0001u << 2)
33 #define SBG_ECOM_HEAVE_PERIOD_INCLUDED (0x0001u << 3)
34 #define SBG_ECOM_HEAVE_PERIOD_VALID (0x0001u << 4)
35 #define SBG_ECOM_HEAVE_SWELL_MODE (0x0001u << 5)
37 //----------------------------------------------------------------------//
38 //- Log structure definitions -//
39 //----------------------------------------------------------------------//
40 
48 typedef struct _SbgLogShipMotionData
49 {
50  uint32_t timeStamp;
51  uint16_t status;
53  float shipMotion[3];
54  float shipAccel[3];
55  float shipVel[3];
57 
58 //----------------------------------------------------------------------//
59 //- Operations -//
60 //----------------------------------------------------------------------//
61 
68 SbgErrorCode sbgEComBinaryLogParseShipMotionData(SbgStreamBuffer *pInputStream, SbgLogShipMotionData *pOutputData);
69 
76 SbgErrorCode sbgEComBinaryLogWriteShipMotionData(SbgStreamBuffer *pOutputStream, const SbgLogShipMotionData *pInputData);
77 
78 #endif
Definition: sbgEComBinaryLogShipMotion.h:48
float shipVel[3]
Definition: sbgEComBinaryLogShipMotion.h:55
float shipMotion[3]
Definition: sbgEComBinaryLogShipMotion.h:53
float mainHeavePeriod
Definition: sbgEComBinaryLogShipMotion.h:52
struct _SbgLogShipMotionData SbgLogShipMotionData
SbgErrorCode sbgEComBinaryLogParseShipMotionData(SbgStreamBuffer *pInputStream, SbgLogShipMotionData *pOutputData)
uint32_t timeStamp
Definition: sbgEComBinaryLogShipMotion.h:50
uint16_t status
Definition: sbgEComBinaryLogShipMotion.h:51
float shipAccel[3]
Definition: sbgEComBinaryLogShipMotion.h:54
SbgErrorCode sbgEComBinaryLogWriteShipMotionData(SbgStreamBuffer *pOutputStream, const SbgLogShipMotionData *pInputData)