Unofficial community resource. Not affiliated with, maintained by, or endorsed by WOWCube / Cubios Inc. Cubios Inc. does not guarantee the accuracy or completeness of this content. Official WOWCube Development Kit

WOWCube Docs logo
WOWCube Docs
Mission Control
Section Shortcuts
APIExamplesSourceWOWConnectChangelogDeveloper Toolkit
Filters
SDK and language defaults persist in cookies.
SDK version
Navigation Tree
Collapsed by default, focused on the active path.

Unofficial community resource. Not affiliated with, maintained by, or endorsed by WOWCube / Cubios Inc. Cubios Inc. does not guarantee the accuracy or completeness of this content. For official documentation and the SDK, see the WOWCube Development Kit.

Made byMcKay Seamons
GitHub
  1. Home
  2. Docs
  3. API
  4. motion\ sensor
Mission NodeSDK 6.3PawnAPI Reference

motion\ sensor

PawnLibs/motion\ sensor Description Interfaces for getting motion sensor data. Motion sensors are useful for monitoring module movement. Supported sensor dat...

API / SDK 6.3 / Pawn / API Reference
VersionSDK 6.3SDK 6.2SDK 6.1
Report issue

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

motion\ sensor
PAWN
1forward ON_Pat(const count, const display, const bool:opposite);
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

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

motion\ sensor
PAWN
1native MS_getFaceAccelX(const display);
2/* Inputs
3 * * display - for which accelerometer value will be returned
4
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Return value

Accelerometer value along X axis.

PawnLibs/motion_sensor/MS_getFaceAccelY

Summary

Get accelerometer value along Y axis of some display.

Synopsis

motion\ sensor
PAWN
1native MS_getFaceAccelY(const display);
2/* Inputs
3 * * display - for which accelerometer value will be returned
4
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Return value

Accelerometer value along Y axis.

PawnLibs/motion_sensor/MS_getFaceAccelZ

Summary

Get accelerometer value along Z axis of some display.

Synopsis

motion\ sensor
PAWN
1native MS_getFaceAccelZ(const display);
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

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

motion\ sensor
PAWN
1native MS_getFaceGyroX(const display);
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

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

motion\ sensor
PAWN
1native MS_getFaceGyroY(const display);
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

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

motion\ sensor
PAWN
1native MS_getFaceGyroZ(const display);
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Description

Value increases clockwise - TBD: check.

Inputs

  • display - for which gyroscope value will be returned

Return value

Gyroscope value around Z axis.


Trust & provenance

Document status

Source
Motion Sensor · installed SDK headers
Classification
API reference
Verification
Community-maintained · verify against installed SDK

Catalog updated Oct 20, 2018

Structured index

Symbols on this page

Names and signatures are extracted from this SDK-derived page. Signature hashes detect accidental changes.

motion_sensorMember
ON_PatCallback
MS_getFaceAccelXNativenative MS_getFaceAccelX(const display);
MS_getFaceAccelYNativenative MS_getFaceAccelY(const display);
MS_getFaceAccelZNativenative MS_getFaceAccelZ(const display);
MS_getFaceGyroXNativenative MS_getFaceGyroX(const display);
MS_getFaceGyroYNativenative MS_getFaceGyroY(const display);
MS_getFaceGyroZNativenative MS_getFaceGyroZ(const display);

Used in SDK snippets

motion_sensor→main.pwnmotion_sensor→main.pwnmotion_sensor→main.pwnmotion_sensor→main.pwnmotion_sensor→butterflies.pwn
Jump Grid

On This Page

PawnLibs/motion\ sensorPawnLibs/motion\ sensor/ON\ PatPawnLibs/motion\ sensor/MS\ getFaceAccelXPawnLibs/motion\ sensor/MS\ getFaceAccelYPawnLibs/motion\ sensor/MS\ getFaceAccelZPawnLibs/motion\ sensor/MS\ getFaceGyroXPawnLibs/motion\ sensor/MS\ getFaceGyroYPawnLibs/motion\ sensor/MS\ getFaceGyroZ
Back to top ↑
Context Rail

Related nodes

SELF\ ID
API / SDK 6.3 / Pawn / API Reference
graphics
API / SDK 6.3 / Pawn / API Reference
SND\ cacheSounds
API / SDK 6.3 / Pawn / API Reference
topology
API / SDK 6.3 / Pawn / API Reference
Previous Node
topology
API / SDK 6.3 / Pawn / API Reference
Next Node
LB\ INFO
API / SDK 6.3 / Pawn / API Reference