36#ifndef __INCLUDE_SENSING_COMPASS_H
37#define __INCLUDE_SENSING_COMPASS_H
51#include "sensing/sensor_api.h"
52#include "sensing/sensor_id.h"
53#include "sensing/sensor_ecode.h"
55#include "memutils/s_stl/queue.h"
118 void set_callback(uint32_t);
124 : m_cmd_pool_id(cmd_pool_id)
125 , m_rst_pool_id(rst_pool_id)
133 #define MAX_EXEC_COUNT 10
139 s_std::Queue<struct exe_mh_s, MAX_EXEC_COUNT> m_accel_exe_que;
140 s_std::Queue<struct exe_mh_s, MAX_EXEC_COUNT> m_mag_exe_que;
150 pthread_t m_thread_id;
Definition: compass.h:109
Memory Handler Class for "Memory Manager Lite". This is only wrapper class for convert project-specif...
Definition: MemManager.h:107
int CompassClose(FAR CompassClass *ins)
Destory Compass worker task.
FAR CompassClass * CompassCreate(MemMgrLite::PoolId cmd_pool_id, MemMgrLite::PoolId rst_pool_id)
Create CompassClass instance.
int CompassOpen(FAR CompassClass *ins)
Load Compass library and boot up as worker task. After booted up, send initialize and wait complete.
int CompassWrite(FAR CompassClass *ins, FAR sensor_command_data_mh_t *command)
Send data to Compass worker task.
The structure of result on compass commands.
Definition: compass.h:68
int resultcmd
Definition: compass.h:69
float azimuth
Definition: compass.h:78
int errcode
Definition: compass.h:74
float roll
Definition: compass.h:87
float pitch
Definition: compass.h:83
int exec_result
Definition: compass.h:73
int acc_azimuth
Definition: compass.h:95
float decl
Definition: compass.h:91
int calib_lv
Definition: compass.h:98
Definition: MemMgrTypes.h:88
The command of send some sensor data with MemHandle to the sensor manager. This function only can cal...
Definition: sensor_api.h:134