Files | |
| file | compass_command.h |
Classes | |
| struct | CompassResult |
| The structure of result on compass commands. More... | |
| class | CompassClass |
| struct | CompassDebugDumpInfo |
| struct | SensorInitCompass |
| the structure of Accelstep setting for initilaize. More... | |
| struct | CompassSetSoftIron |
| Adjust parameter of magnetometer sensor. More... | |
| struct | SensorExecCompass |
| the command of Compass execute by a frame(a few sample). More... | |
| struct | SensorFlushCompass |
| the command of compass terminate. More... | |
| struct | CompassData |
| the structure of Compass results. the result is returned only when COMPASS_CMD_UPDATE_MAG is specified as the command type. More... | |
| struct | SensorResultCompass |
| the structure of sensor result on compass commands. More... | |
| struct | SensorCmdCompass |
| the structure of compass commands. More... | |
Enumerations | |
| enum | CompassCmdType { COMPASS_CMD_UPDATE_ACCEL = 0 , COMPASS_CMD_UPDATE_MAG , COMPASS_CMD_SET_SOFTIRON_PARAM , COMPASS_CMD_SET_WALKSTATE , COMPASS_CMD_RESET_CALIB } |
| Publishers. More... | |
| enum | CompassWalkStateType { COMPASS_WALK_STATE_DISABLED = -1 , COMPASS_WALK_STATE_STOPPING , COMPASS_WALK_STATE_WALKING } |
| Sensor state specified by COMPASS_CMD_SET_WALKSTATE. More... | |
Functions | |
| FAR CompassClass * | CompassCreate (MemMgrLite::PoolId cmd_pool_id, MemMgrLite::PoolId rst_pool_id) |
| Create CompassClass instance. More... | |
| int | CompassOpen (FAR CompassClass *ins) |
| Load Compass library and boot up as worker task. After booted up, send initialize and wait complete. More... | |
| int | CompassClose (FAR CompassClass *ins) |
| Destory Compass worker task. More... | |
| int | CompassWrite (FAR CompassClass *ins, FAR sensor_command_data_mh_t *command) |
| Send data to Compass worker task. More... | |
| enum CompassCmdType |
Publishers.
| enum CompassWalkStateType |
| FAR CompassClass * CompassCreate | ( | MemMgrLite::PoolId | cmd_pool_id, |
| MemMgrLite::PoolId | rst_pool_id | ||
| ) |
Create CompassClass instance.
| [in] | cmd_pool_id | : Pool id for DSP communication data |
| int CompassOpen | ( | FAR CompassClass * | ins | ) |
Load Compass library and boot up as worker task. After booted up, send initialize and wait complete.
| [in] | ins | : instance address of CompassClass |
| int CompassClose | ( | FAR CompassClass * | ins | ) |
Destory Compass worker task.
| [in] | ins | : instance address of CompassClass |
| int CompassWrite | ( | FAR CompassClass * | ins, |
| FAR sensor_command_data_mh_t * | command | ||
| ) |
Send data to Compass worker task.
| [in] | ins | : instance address of CompassClass |
| [in] | command | : command including data to send |