sbgEComCmdOdo.h
Go to the documentation of this file.
1 
20 #ifndef SBG_ECOM_CMD_ODO_H
21 #define SBG_ECOM_CMD_ODO_H
22 
23 #include "sbgEComCmdCommon.h"
24 
25 //----------------------------------------------------------------------//
26 //- Public definitions -//
27 //----------------------------------------------------------------------//
28 
32 typedef struct _SbgEComOdoConf
33 {
34  float gain;
35  uint8_t gainError;
36  bool reverseMode;
38 
43 {
46 
52 {
56 
57 /*
58  * Define CAN odometer options bitmask
59  */
60 #define SBG_ECOM_CMD_ODO_CAN_ENABLE (uint16_t)(0x0001 << 0)
61 #define SBG_ECOM_CMD_ODO_CAN_ID_EXTENDED (uint16_t)(0x0001 << 1)
62 #define SBG_ECOM_CMD_ODO_CAN_BIG_ENDIAN (uint16_t)(0x0001 << 2)
63 #define SBG_ECOM_CMD_ODO_CAN_SIGNED (uint16_t)(0x0001 << 3)
69 typedef struct _SbgEComCmdOdoCanConf
70 {
71  uint16_t options;
72  uint32_t canId;
74  size_t startBit;
75  size_t dataSize;
77  float scale;
78  float offset;
79  float minValue;
80  float maxValue;
82 
83 //----------------------------------------------------------------------//
84 //- Public methods -//
85 //----------------------------------------------------------------------//
86 
95 
103 SbgErrorCode sbgEComCmdOdoSetConf(SbgEComHandle *pHandle, const SbgEComOdoConf *pOdometerConf);
104 
112 SbgErrorCode sbgEComCmdOdoGetLeverArm(SbgEComHandle *pHandle, float leverArm[3]);
113 
121 SbgErrorCode sbgEComCmdOdoSetLeverArm(SbgEComHandle *pHandle, const float leverArm[3]);
122 
131 
140 
150 
160 
161 #endif /* SBG_ECOM_CMD_ODO_H */
SbgErrorCode sbgEComCmdOdoGetLeverArm(SbgEComHandle *pHandle, float leverArm[3])
This file groups all common definitions required by all commands.
enum _SbgEComCmdOdoCanChannel SbgEComCmdOdoCanChannel
SbgErrorCode sbgEComCmdOdoCanSetConf(SbgEComHandle *pHandle, SbgEComCmdOdoCanChannel canChannel, const SbgEComCmdOdoCanConf *pOdoCanConf)
struct _SbgEComOdoConf SbgEComOdoConf
SbgEComRejectionMode velocity
Definition: sbgEComCmdOdo.h:44
_SbgEComCmdOdoCanChannel
Definition: sbgEComCmdOdo.h:51
enum _SbgEComRejectionMode SbgEComRejectionMode
SbgErrorCode sbgEComCmdOdoSetConf(SbgEComHandle *pHandle, const SbgEComOdoConf *pOdometerConf)
Definition: sbgEComCmdOdo.c:92
SbgErrorCode sbgEComCmdOdoSetRejection(SbgEComHandle *pHandle, const SbgEComOdoRejectionConf *pRejectConf)
SbgErrorCode sbgEComCmdOdoCanGetConf(SbgEComHandle *pHandle, SbgEComCmdOdoCanChannel canChannel, SbgEComCmdOdoCanConf *pOdoCanConf)
struct _SbgEComCmdOdoCanConf SbgEComCmdOdoCanConf
SbgErrorCode sbgEComCmdOdoGetRejection(SbgEComHandle *pHandle, SbgEComOdoRejectionConf *pRejectConf)
SbgErrorCode sbgEComCmdOdoGetConf(SbgEComHandle *pHandle, SbgEComOdoConf *pOdometerConf)
Definition: sbgEComCmdOdo.c:26
struct _SbgEComOdoRejectionConf SbgEComOdoRejectionConf
enum _SbgErrorCode SbgErrorCode
SbgErrorCode sbgEComCmdOdoSetLeverArm(SbgEComHandle *pHandle, const float leverArm[3])


sbg_driver
Author(s): SBG Systems
autogenerated on Sat Sep 3 2022 02:53:36