Files | |
file | arm_gesture_command.h |
Classes | |
class | GestureClass |
struct | GestureTypes |
the structure of gesture type. More... | |
struct | GestureDebugDumpInfo |
struct | SensorInitGesture |
the structure of gesture type for initilaize. More... | |
struct | GestureSetRotation |
Rotation matrix. Assume x_adjusted, y_adjusted, z_adjusted as adjusted x, y, z acceleration value accordingly. As well, x_sensor, y_sensor, z_sensor are defined as original x, y, z value from sensor accordingly. x_adjusted, y_adjusted and z_adjusted are calculated as follows: x_adjusted = x_sensor * xx + y_sensor * xy + z_sensor * xz; y_adjusted = x_sensor * yx + y_sensor * yy + z_sensor * yz; z_adjusted = x_sensor * zx + y_sensor * zy + z_sensor * zz;. More... | |
struct | SensorExecGesture |
the struct of gesture for the execute command. More... | |
struct | SensorFlushGesture |
the command of gesture terminate. More... | |
struct | SensorResultArmGesture |
the structure of sensor result on arm gesture commands. More... | |
struct | SensorCmdArmGesture |
the structure of arm gesture commands. More... | |
Enumerations | |
enum | GestureArmPosition { GESTURE_POS_UP = 0 , GESTURE_POS_DOWN } |
Arm positions. More... | |
enum | GestureCmdType { GESTURE_CMD_SET_TYPE = 0 , GESTURE_CMD_GET_TYPE , GESTURE_CMD_SET_ARM_POSITION , GESTURE_CMD_ROTATION } |
Publishers. More... | |
Functions | |
FAR GestureClass * | GestureCreate (MemMgrLite::PoolId cmd_pool_id) |
Create GestureClass instance. More... | |
int | GestureOpen (FAR GestureClass *ins) |
Load Gesture library and boot up as worker task. After booted up, send initialize and wait complete. More... | |
int | GestureClose (FAR GestureClass *ins) |
Destory Gesture worker task. More... | |
int | GestureWrite (FAR GestureClass *ins, FAR sensor_command_data_mh_t *command) |
Send data to Gesture worker task. More... | |
int | GestureSetCoordinate (FAR GestureClass *ins, FAR GestureSetRotation *rotation) |
Set Gesture coordinate. More... | |
enum GestureArmPosition |
enum GestureCmdType |
FAR GestureClass * GestureCreate | ( | MemMgrLite::PoolId | cmd_pool_id | ) |
Create GestureClass instance.
[in] | cmd_pool_id | : Pool id for DSP communication data |
int GestureOpen | ( | FAR GestureClass * | ins | ) |
Load Gesture library and boot up as worker task. After booted up, send initialize and wait complete.
[in] | ins | : instance address of GestureClass |
int GestureClose | ( | FAR GestureClass * | ins | ) |
Destory Gesture worker task.
[in] | ins | : instance address of GestureClass |
int GestureWrite | ( | FAR GestureClass * | ins, |
FAR sensor_command_data_mh_t * | command | ||
) |
Send data to Gesture worker task.
[in] | ins | : instance address of GestureClass |
[in] | command | : command including data to send |
int GestureSetCoordinate | ( | FAR GestureClass * | ins, |
FAR GestureSetRotation * | rotation | ||
) |
Set Gesture coordinate.
[in] | ins | : instance address of GestureClass |
[in] | rotation | : coordinate transformation matrix |