Runner's High
Public Types | Public Member Functions | Public Attributes | Properties | List of all members
Accel.SensorInput Class Reference

A SensorInput is used to capture input data from various hardware sensors. More...

Inheritance diagram for Accel.SensorInput:
Accel.DataOutput< float > Accel.DataStreamOutput< float >

Public Types

enum class  Sensor {
  acceleration , rotation , rotationRate , gravity ,
  heading
}
 The different sensors available to this class.
 
enum class  CoordinateSpace { realWorld , device }
 The different coordinate spaces available for this class.
 

Public Member Functions

void Update ()
 

Public Attributes

bool magnitudes
 If true, negative input data is multiplied by -1.
 
CoordinateSpace coordinateSpace = CoordinateSpace.realWorld
 The coordinate space the instance works on. If it is set to realWorld, input data is converted from device to real world space.
 
SensorInput.Sensor sensor = Sensor.acceleration
 The sensor type the instance works on.
 
bool X
 Toggle X axis input (if applicable).
 
bool Y
 Toggle Y axis input (if applicable).
 
bool Z
 Toggle Z axis input (if applicable).
 

Properties

float Val [get]
 The current sensor value.
 
RingBuffer< float > Stream [get]
 All currently stored values.
 
- Properties inherited from Accel.DataOutput< float >
Val [get]
 The current output calue.
 
- Properties inherited from Accel.DataStreamOutput< float >
RingBuffer< T > Stream [get]
 

Detailed Description

A SensorInput is used to capture input data from various hardware sensors.


The documentation for this class was generated from the following file: