sbgECom Library  5.2.590-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_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)
54
55//----------------------------------------------------------------------//
56//- Log structure definitions -//
57//----------------------------------------------------------------------//
58
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
104SBG_DEPRECATED_TYPEDEF(typedef struct _SbgEComLogShipMotion SbgLogShipMotionData);
105
106SBG_DEPRECATED(SbgErrorCode sbgEComBinaryLogParseShipMotionData(SbgStreamBuffer *pStreamBuffer, SbgEComLogShipMotion *pLogData));
107SBG_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(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: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