sbgECom Library  5.3.2276-stable
Interface SBG Systems IMU/AHRS/INS
Loading...
Searching...
No Matches
sbgEComLogShipMotion.h
Go to the documentation of this file.
1
32
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
41extern "C" {
42#endif
43
44//----------------------------------------------------------------------//
45//- Heave status definitions -//
46//----------------------------------------------------------------------//
47
48#define SBG_ECOM_SHIP_MOTION_HEAVE_VALID (0x0001u << 0)
49#define SBG_ECOM_SHIP_MOTION_VEL_AIDED (0x0001u << 1)
50#define SBG_ECOM_SHIP_MOTION_SURGE_SWAY_VALID (0x0001u << 2)
51#define SBG_ECOM_SHIP_MOTION_RESERVED (0x0001u << 3)
52#define SBG_ECOM_SHIP_MOTION_HEAVE_PERIOD_VALID (0x0001u << 4)
53#define SBG_ECOM_SHIP_MOTION_SWELL_MODE (0x0001u << 5)
54#define SBG_ECOM_SHIP_MOTION_ACCEL_VALID (0x0001u << 6)
55
56//----------------------------------------------------------------------//
57//- Log structure definitions -//
58//----------------------------------------------------------------------//
59
72{
73 uint32_t timeStamp;
74 uint16_t status;
76 float shipMotion[3];
77 float shipAccel[3];
78 float shipVel[3];
80
81//----------------------------------------------------------------------//
82//- Public methods -//
83//----------------------------------------------------------------------//
84
93
102
103//----------------------------------------------------------------------//
104//- DEPRECATED - Used for backward compatibility -//
105//----------------------------------------------------------------------//
106
107#ifdef SBG_ECOM_USE_DEPRECATED_MACROS
108 #define SBG_ECOM_HEAVE_VALID SBG_ECOM_SHIP_MOTION_HEAVE_VALID
109 #define SBG_ECOM_HEAVE_VEL_AIDED SBG_ECOM_SHIP_MOTION_VEL_AIDED
110 #define SBG_ECOM_HEAVE_SURGE_SWAY_INCLUDED SBG_ECOM_SHIP_MOTION_SURGE_SWAY_VALID
111 #define SBG_ECOM_HEAVE_PERIOD_INCLUDED SBG_ECOM_SHIP_MOTION_HEAVE_PERIOD_VALID
112 #define SBG_ECOM_HEAVE_PERIOD_VALID SBG_ECOM_SHIP_MOTION_HEAVE_PERIOD_VALID
113 #define SBG_ECOM_HEAVE_SWELL_MODE SBG_ECOM_SHIP_MOTION_SWELL_MODE
114#endif
115
116SBG_DEPRECATED_TYPEDEF(typedef struct _SbgEComLogShipMotion SbgLogShipMotionData);
117
118SBG_DEPRECATED(SbgErrorCode sbgEComBinaryLogParseShipMotionData(SbgStreamBuffer *pStreamBuffer, SbgEComLogShipMotion *pLogData));
119SBG_DEPRECATED(SbgErrorCode sbgEComBinaryLogWriteShipMotionData(SbgStreamBuffer *pStreamBuffer, const SbgEComLogShipMotion *pLogData));
120
121#ifdef __cplusplus
122}
123#endif
124
125#endif // SBG_ECOM_LOG_SHIP_MOTION_H
Main header for the SBG Systems common C library.
#define SBG_DEPRECATED(func)
Definition sbgDefines.h:316
#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.
struct _SbgStreamBuffer SbgStreamBuffer
Definition sbgEComLogShipMotion.h:72
float shipMotion[3]
Definition sbgEComLogShipMotion.h:76
float shipAccel[3]
Definition sbgEComLogShipMotion.h:77
uint16_t status
Definition sbgEComLogShipMotion.h:74
float mainHeavePeriod
Definition sbgEComLogShipMotion.h:75
uint32_t timeStamp
Definition sbgEComLogShipMotion.h:73
float shipVel[3]
Definition sbgEComLogShipMotion.h:78