Classes | Typedefs | Enumerations | Functions
sbgEComCmdSensor.h File Reference

This file implements SbgECom commands related to sensor. More...

#include "sbgEComCmdCommon.h"
Include dependency graph for sbgEComCmdSensor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _SbgEComAidingAssignConf
 
struct  _SbgEComInitConditionConf
 
struct  _SbgEComSensorAlignmentInfo
 

Typedefs

typedef struct _SbgEComAidingAssignConf SbgEComAidingAssignConf
 
typedef struct _SbgEComInitConditionConf SbgEComInitConditionConf
 
typedef enum _SbgEComModulePortAssignment SbgEComModulePortAssignment
 
typedef enum _SbgEComModuleSyncAssignment SbgEComModuleSyncAssignment
 
typedef enum _SbgEComMotionProfileStdIds SbgEComMotionProfileStdIds
 
typedef enum _SbgEComOdometerPinAssignment SbgEComOdometerPinAssignment
 
typedef struct _SbgEComSensorAlignmentInfo SbgEComSensorAlignmentInfo
 

Enumerations

enum  _SbgEComModulePortAssignment {
  SBG_ECOM_MODULE_PORT_B = 1, SBG_ECOM_MODULE_PORT_C = 2, SBG_ECOM_MODULE_PORT_D = 3, SBG_ECOM_MODULE_INTERNAL = 5,
  SBG_ECOM_MODULE_DISABLED = 0xFF
}
 
enum  _SbgEComModuleSyncAssignment {
  SBG_ECOM_MODULE_SYNC_DISABLED = 0, SBG_ECOM_MODULE_SYNC_IN_A = 1, SBG_ECOM_MODULE_SYNC_IN_B = 2, SBG_ECOM_MODULE_SYNC_IN_C = 3,
  SBG_ECOM_MODULE_SYNC_IN_D = 4, SBG_ECOM_MODULE_SYNC_INTERNAL = 5, SBG_ECOM_MODULE_SYNC_OUT_A = 6, SBG_ECOM_MODULE_SYNC_OUT_B = 7
}
 
enum  _SbgEComMotionProfileStdIds {
  SBG_ECOM_MOTION_PROFILE_GENERAL_PURPOSE = 1, SBG_ECOM_MOTION_PROFILE_AUTOMOTIVE = 2, SBG_ECOM_MOTION_PROFILE_MARINE = 3, SBG_ECOM_MOTION_PROFILE_AIRPLANE = 4,
  SBG_ECOM_MOTION_PROFILE_HELICOPTER = 5, SBG_ECOM_MOTION_PROFILE_UAV_ROTARY_WING = 7
}
 
enum  _SbgEComOdometerPinAssignment { SBG_ECOM_MODULE_ODO_DISABLED = 0, SBG_ECOM_MODULE_ODO_A = 1, SBG_ECOM_MODULE_ODO_A_B = 2 }
 

Functions

 SBG_DEPRECATED (SbgErrorCode sbgEComCmdSensorSetMotionProfile(SbgEComHandle *pHandle, const void *pBuffer, uint32 size))
 
SbgErrorCode sbgEComCmdSensorGetAidingAssignment (SbgEComHandle *pHandle, SbgEComAidingAssignConf *pConf)
 
SbgErrorCode sbgEComCmdSensorGetAlignmentAndLeverArm (SbgEComHandle *pHandle, SbgEComSensorAlignmentInfo *pAlignConf, float leverArm[3])
 
SbgErrorCode sbgEComCmdSensorGetInitCondition (SbgEComHandle *pHandle, SbgEComInitConditionConf *pConf)
 
SbgErrorCode sbgEComCmdSensorGetMotionProfileInfo (SbgEComHandle *pHandle, SbgEComModelInfo *pMotionProfileInfo)
 
SbgErrorCode sbgEComCmdSensorSetAidingAssignment (SbgEComHandle *pHandle, const SbgEComAidingAssignConf *pConf)
 
SbgErrorCode sbgEComCmdSensorSetAlignmentAndLeverArm (SbgEComHandle *pHandle, const SbgEComSensorAlignmentInfo *pAlignConf, const float leverArm[3])
 
SbgErrorCode sbgEComCmdSensorSetInitCondition (SbgEComHandle *pHandle, const SbgEComInitConditionConf *pConf)
 
SbgErrorCode sbgEComCmdSensorSetMotionProfileId (SbgEComHandle *pHandle, uint32 id)
 

Detailed Description

This file implements SbgECom commands related to sensor.

Author
SBG Systems (Maxime Renaudet)
Date
11 June 2014

Copyright Notice

Copyright (C) 2007-2013, SBG Systems SAS. All rights reserved.

This source code is intended for use only by SBG Systems SAS and those that have explicit written permission to use it from SBG Systems SAS.

THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.

Definition in file sbgEComCmdSensor.h.

Typedef Documentation

Helper structure for module assignments

Helper structure for sensor Initial condition details

Ports available for the modules.

Synchronization signals available for the modules.

This enum defines the different motion profile IDs available in standard

List of configurations available for the odometer.

Helper structure for sensor alignment details

Enumeration Type Documentation

Ports available for the modules.

Enumerator
SBG_ECOM_MODULE_PORT_B 

Module connected on PORT_B

SBG_ECOM_MODULE_PORT_C 

Module connected on PORT_C

SBG_ECOM_MODULE_PORT_D 

Module connected on PORT_D

SBG_ECOM_MODULE_INTERNAL 

Module is connected internally

SBG_ECOM_MODULE_DISABLED 

Module is disabled

Definition at line 32 of file sbgEComCmdSensor.h.

Synchronization signals available for the modules.

Enumerator
SBG_ECOM_MODULE_SYNC_DISABLED 

Module is disabled

SBG_ECOM_MODULE_SYNC_IN_A 

Synchronization is done using SYNC_IN_A pin

SBG_ECOM_MODULE_SYNC_IN_B 

Synchronization is done using SYNC_IN_B pin

SBG_ECOM_MODULE_SYNC_IN_C 

Synchronization is done using SYNC_IN_C pin

SBG_ECOM_MODULE_SYNC_IN_D 

Synchronization is done using SYNC_IN_D pin

SBG_ECOM_MODULE_SYNC_INTERNAL 

Synchronization is internal

SBG_ECOM_MODULE_SYNC_OUT_A 

Synchronization signal is output on SYNC_OUT_A

SBG_ECOM_MODULE_SYNC_OUT_B 

Synchronization signal is output on SYNC_OUT_B

Definition at line 44 of file sbgEComCmdSensor.h.

This enum defines the different motion profile IDs available in standard

Enumerator
SBG_ECOM_MOTION_PROFILE_GENERAL_PURPOSE 

Should be used as a default when other profiles do not apply

SBG_ECOM_MOTION_PROFILE_AUTOMOTIVE 

Dedicated to car applications

SBG_ECOM_MOTION_PROFILE_MARINE 

Used in marine and underwater applications

SBG_ECOM_MOTION_PROFILE_AIRPLANE 

For fixed wings aircraft

SBG_ECOM_MOTION_PROFILE_HELICOPTER 

For rotary wing aircraft

SBG_ECOM_MOTION_PROFILE_UAV_ROTARY_WING 

For rotary wing UAVs that have low dynamics

Definition at line 69 of file sbgEComCmdSensor.h.

List of configurations available for the odometer.

Enumerator
SBG_ECOM_MODULE_ODO_DISABLED 

Odometer is disabled.

SBG_ECOM_MODULE_ODO_A 

Odometer connected only to ODO_A (unidirectional)..

SBG_ECOM_MODULE_ODO_A_B 

Odometer connected to both ODO_A (signal A) and ODO_B (Signal B or direction) for bidirectional odometer..

Definition at line 59 of file sbgEComCmdSensor.h.

Function Documentation

SBG_DEPRECATED ( SbgErrorCode   sbgEComCmdSensorSetMotionProfileSbgEComHandle *pHandle, const void *pBuffer, uint32 size)

DEPRECATED FUNCTION. Please use sbgEComCmdSensorSetMotionProfileId instead Set the motion profile (as a raw buffer) to use by the device. The new configuration will only be applied after SBG_ECOM_CMD_SETTINGS_ACTION (01) command is issued, with SBG_ECOM_SAVE_SETTINGS parameter.

Parameters
[in]pHandleA valid sbgECom handle.
[in]pBufferRead only buffer containing the motion profile buffer.
[in]sizeSize of the buffer.
Returns
SBG_NO_ERROR if the command has been executed successfully.
SbgErrorCode sbgEComCmdSensorGetAidingAssignment ( SbgEComHandle pHandle,
SbgEComAidingAssignConf pConf 
)

Retrieve the assignment of the aiding sensors.

Parameters
[in]pHandleA valid sbgECom handle.
[out]pConfPointer to a SbgEComAidingAssignConf to contain the current assignment of the aiding sensors.
Returns
SBG_NO_ERROR if the command has been executed successfully.

< Reserved fields to ignore

< Reserved field to ignore

Definition at line 230 of file sbgEComCmdSensor.c.

SbgErrorCode sbgEComCmdSensorGetAlignmentAndLeverArm ( SbgEComHandle pHandle,
SbgEComSensorAlignmentInfo pAlignConf,
float  leverArm[3] 
)

Retrieve the alignment and lever arm configuration of the sensor.

Parameters
[in]pHandleA valid sbgECom handle.
[out]pAlignConfPointer to a SbgEComSensorAlignmentInfo struct to hold alignment configuration of the sensor.
[out]leverArmPointer to a table to contain lever arm X, Y, Z components in meters.
Returns
SBG_NO_ERROR if the command has been executed successfully.

Definition at line 400 of file sbgEComCmdSensor.c.

SbgErrorCode sbgEComCmdSensorGetInitCondition ( SbgEComHandle pHandle,
SbgEComInitConditionConf pConf 
)

Retrieve the initial conditions settings.

Parameters
[in]pHandleA valid sbgECom handle.
[out]pConfPointer to a SbgEComInitConditionConf to contain the current initial conditions settings.
Returns
SBG_NO_ERROR if the command has been executed successfully.

Definition at line 61 of file sbgEComCmdSensor.c.

SbgErrorCode sbgEComCmdSensorGetMotionProfileInfo ( SbgEComHandle pHandle,
SbgEComModelInfo pModelInfo 
)

Retrieve Motion profile information.

Parameters
[in]pHandleA valid sbgECom handle.
[out]pMotionProfileInfoPointer to a SbgEComModelInfo to contain the current motion profile info.
Returns
SBG_NO_ERROR if the command has been executed successfully.

Definition at line 30 of file sbgEComCmdSensor.c.

SbgErrorCode sbgEComCmdSensorSetAidingAssignment ( SbgEComHandle pHandle,
const SbgEComAidingAssignConf pConf 
)

Set the assignment of the aiding sensors.

Parameters
[in]pHandleA valid sbgECom handle.
[out]pConfPointer to a SbgEComAidingAssignConf containing the new assignment of the aiding sensors.
Returns
SBG_NO_ERROR if the command has been executed successfully.

Definition at line 315 of file sbgEComCmdSensor.c.

SbgErrorCode sbgEComCmdSensorSetAlignmentAndLeverArm ( SbgEComHandle pHandle,
const SbgEComSensorAlignmentInfo pAlignConf,
const float  leverArm[3] 
)

Set the alignment and lever arm configuration of the sensor.

Parameters
[in]pHandleA valid sbgECom handle.
[in]pAlignConfPointer to a SbgEComSensorAlignmentInfo struct holding alignment configuration for the sensor.
[in]leverArmPointer to a table containing lever arm X, Y, Z components in meters.
Returns
SBG_NO_ERROR if the command has been executed successfully.

Definition at line 488 of file sbgEComCmdSensor.c.

SbgErrorCode sbgEComCmdSensorSetInitCondition ( SbgEComHandle pHandle,
const SbgEComInitConditionConf pConf 
)

Set the initial condition configuration.

Parameters
[in]pHandleA valid sbgECom handle.
[in]pConfPointer to a SbgEComInitConditionConf containing the new initial condition configuration.
Returns
SBG_NO_ERROR if the command has been executed successfully.

Definition at line 146 of file sbgEComCmdSensor.c.

SbgErrorCode sbgEComCmdSensorSetMotionProfileId ( SbgEComHandle pHandle,
uint32  id 
)

Set a Motion profile ID

Parameters
[in]pHandleA valid sbgECom handle.

Definition at line 15 of file sbgEComCmdSensor.c.



sbg_driver
Author(s):
autogenerated on Sun Jan 27 2019 03:42:20