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
- tap - count of taps in the sequence
PawnLibs/motion_sensor/ON_Shake
Summary
Shakes handler.
Synopsis
Description
Public function with such signature will be called when the shakes sequence is detected. Shake is a continuous significant motion which direction has been changed since the previous recent shake. TBD: current implementation works ineffective, should be redesigned.
Inputs
- count - how many shakes there are in the shakes sequence
See also
- SENSITIVITY_MENU_CHANGE_SCRIPT
- quit()
PawnLibs/motion_sensor/ON_Tap
Summary
Taps handler.
Synopsis
Description
Public function with such signature will be called when the taps sequence is detected.
Inputs
- count - how many taps there are in the taps sequence
- display - TBD: currently most recent taps axis
- opposite - true, if most recenttap 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.