The imu proxy provides an interface to an Inertial Measurement Unit. More...

Detailed Description

The imu proxy provides an interface to an Inertial Measurement Unit.

Classes

struct  playerc_imu_t
 IMU proxy state data. More...
 

Functions

PLAYERC_EXPORT playerc_imu_tplayerc_imu_create (playerc_client_t *client, int index)
 Create a imu proxy. More...
 
PLAYERC_EXPORT void playerc_imu_destroy (playerc_imu_t *device)
 Destroy a imu proxy. More...
 
PLAYERC_EXPORT int playerc_imu_subscribe (playerc_imu_t *device, int access)
 Subscribe to the imu device. More...
 
PLAYERC_EXPORT int playerc_imu_unsubscribe (playerc_imu_t *device)
 Un-subscribe from the imu device. More...
 
PLAYERC_EXPORT int playerc_imu_datatype (playerc_imu_t *device, int value)
 Change the data type to one of the predefined data structures. More...
 
PLAYERC_EXPORT int playerc_imu_reset_orientation (playerc_imu_t *device, int value)
 Reset orientation. More...
 
PLAYERC_EXPORT int playerc_imu_reset_euler (playerc_imu_t *device, float roll, float pitch, float yaw)
 Reset euler orientation. More...
 

Function Documentation

◆ playerc_imu_create()

PLAYERC_EXPORT playerc_imu_t* playerc_imu_create ( playerc_client_t client,
int  index 
)

Create a imu proxy.

◆ playerc_imu_datatype()

PLAYERC_EXPORT int playerc_imu_datatype ( playerc_imu_t device,
int  value 
)

Change the data type to one of the predefined data structures.

◆ playerc_imu_destroy()

PLAYERC_EXPORT void playerc_imu_destroy ( playerc_imu_t device)

Destroy a imu proxy.

◆ playerc_imu_reset_euler()

PLAYERC_EXPORT int playerc_imu_reset_euler ( playerc_imu_t device,
float  roll,
float  pitch,
float  yaw 
)

Reset euler orientation.

◆ playerc_imu_reset_orientation()

PLAYERC_EXPORT int playerc_imu_reset_orientation ( playerc_imu_t device,
int  value 
)

Reset orientation.

◆ playerc_imu_subscribe()

PLAYERC_EXPORT int playerc_imu_subscribe ( playerc_imu_t device,
int  access 
)

Subscribe to the imu device.

◆ playerc_imu_unsubscribe()

PLAYERC_EXPORT int playerc_imu_unsubscribe ( playerc_imu_t device)

Un-subscribe from the imu device.