ExtensionThis class provides a convenience method for easy access to the events generated by an orientation sensing device, for instance a smartphone.
Devices communicate via OSC, and for the moment they should be connected to the same subnet.
Logger/playback (aka looper) functionality is also available.
Any application compilant with the message format is able to communicate with the orientation controller.
The three messages are:
Get the current sensed acceleration
Get the current sensed gravity
Get the current azimuth (yaw) value
Get the current elevation (pitch) value
Get current roll value
Set an action to be performed when a new sensor value is received
| key |
a
|
| aFunc |
the Function to be performed. Two arguments will be passed to the function:
|
Enable sensor listening
Disable sensor listening
Set whether to start or stop logging the sensor activity
| state |
a Boolean |
Get if this is currently logging data
If currently there is no playback, start it
| repeat |
number of repetitions |
Pause the playback
Resume the playback from where it was paused
Stop playback
Answers whether the class is playing back