Developer World
Spresense SDK Library v3.3.0-375c679
compass_command.h File Reference
#include <stdint.h>
#include <stddef.h>
#include "sensing/logical_sensor/sensor_command.h"
#include "sensing/logical_sensor/physical_command.h"

Go to the source code of this file.

Classes

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...
 

Macros

#define COMPASS_ACCEL_SAMPLING_MAX   16
 Acceleration sensor Indicates the maximum number of data samples.
 
#define COMPASS_MAG_SAMPLING_MAX   8
 Magnetometer sensor Indicates the maximum number of data samples.
 

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...