external
sbgECom
src
binaryLogs
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
;
52
float
mainHeavePeriod
;
53
float
shipMotion
[3];
54
float
shipAccel
[3];
55
float
shipVel
[3];
56
}
SbgLogShipMotionData
;
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
_SbgLogShipMotionData::shipAccel
float shipAccel[3]
Definition:
sbgEComBinaryLogShipMotion.h:54
_SbgLogShipMotionData::timeStamp
uint32_t timeStamp
Definition:
sbgEComBinaryLogShipMotion.h:50
sbgCommon.h
_SbgLogShipMotionData::status
uint16_t status
Definition:
sbgEComBinaryLogShipMotion.h:51
_SbgLogShipMotionData::shipVel
float shipVel[3]
Definition:
sbgEComBinaryLogShipMotion.h:55
_SbgLogShipMotionData::mainHeavePeriod
float mainHeavePeriod
Definition:
sbgEComBinaryLogShipMotion.h:52
sbgEComBinaryLogWriteShipMotionData
SbgErrorCode sbgEComBinaryLogWriteShipMotionData(SbgStreamBuffer *pOutputStream, const SbgLogShipMotionData *pInputData)
Definition:
sbgEComBinaryLogShipMotion.c:80
sbgEComBinaryLogParseShipMotionData
SbgErrorCode sbgEComBinaryLogParseShipMotionData(SbgStreamBuffer *pInputStream, SbgLogShipMotionData *pOutputData)
Definition:
sbgEComBinaryLogShipMotion.c:13
_SbgLogShipMotionData::shipMotion
float shipMotion[3]
Definition:
sbgEComBinaryLogShipMotion.h:53
_SbgStreamBuffer
Definition:
sbgStreamBufferCommon.h:188
_SbgLogShipMotionData
Definition:
sbgEComBinaryLogShipMotion.h:48
sbgStreamBuffer.h
SbgErrorCode
enum _SbgErrorCode SbgErrorCode
Header file that defines all error codes for SBG Systems libraries.
SbgLogShipMotionData
struct _SbgLogShipMotionData SbgLogShipMotionData
sbg_driver
Author(s): SBG Systems
autogenerated on Fri Oct 11 2024 02:13:40