PawnLibs/motion_sensor
Description
Interfaces for getting motion sensor data. Motion sensors are useful for monitoring module movement. Supported sensor data types:
- accelerometer - acceleration force along 3 axis, measured in m/s^2, range +- 2g TBD: currently raw data is provided, should be redesigned
- gyroscope - rate of rotation around 3 axis, measured in rad/s, range +-2000 dps TBD: currently raw data is provided, should be redesigned
- shake - count of shakes in the sequence
- pat - count of pats in the sequence
PawnLibs/motion_sensor/ON_Pat
Summary
Pats handler.
Synopsis
Description
Public function with such signature will be called when the pats sequence is detected.
Inputs
- count - how many pats there are in the pat sequence
- display - TBD: currently most recent pats axis
- opposite - true, if most recent pat was detected from the opposite side of cube
PawnLibs/motion_sensor/MS_getFaceAccelX
Summary
Get accelerometer value along X axis of some display.
Synopsis
Return value
Accelerometer value along X axis.
PawnLibs/motion_sensor/MS_getFaceAccelY
Summary
Get accelerometer value along Y axis of some display.
Synopsis
Return value
Accelerometer value along Y axis.
PawnLibs/motion_sensor/MS_getFaceAccelZ
Summary
Get accelerometer value along Z axis of some display.
Synopsis
Description
Z axis directed towards the center of the cube - TBD: check.
Inputs
- display - for which accelerometer value will be returned
Return value
Accelerometer value along Z axis.
PawnLibs/motion_sensor/MS_getFaceGyroX
Summary
Get gyroscope value around X axis of some display.
Synopsis
Description
Value increases clockwise - TBD: check.
Inputs
- display - for which gyroscope value will be returned
Return value
Gyroscope value around X axis.
PawnLibs/motion_sensor/MS_getFaceGyroY
Summary
Get gyroscope value around Y axis of some display.
Synopsis
Description
Value increases clockwise - TBD: check.
Inputs
- display - for which gyroscope value will be returned
Return value
Gyroscope value around Y axis.
PawnLibs/motion_sensor/MS_getFaceGyroZ
Summary
Get gyroscope value around Z axis of some display.
Synopsis
Description
Value increases clockwise - TBD: check.
Inputs
- display - for which gyroscope value will be returned
Return value
Gyroscope value around Z axis.