PhidgetAccelerometer

PhidgetAccelerometer

A class for controlling a PhidgetAccelerometer.  See your product manual for more specific API details, supported functionality, units, etc.

Summary
PhidgetAccelerometerA class for controlling a PhidgetAccelerometer.
EventsEvents supported by PhidgetAccelerometer.
Properties
AxisCountGets the number of axes on this accelerometer.
Functions
getAccelerationGets the acceleration of a axis.
getAccelerationMinGets the minimum acceleration that an axis will return.
getAccelerationMaxGets the maximum acceleration that an axis will return.
getAccelerationChangeTriggerGets the change trigger for an axis.
setAccelerationChangeTriggerSets the change trigger for an axis.

Events

Events supported by PhidgetAccelerometer.  Pass these constants to the addEventListener() function when adding event listeners to a Phidget object.

PhidgetDataEvent.ACCELERATION_CHANGEacceleration change

Properties

AxisCount

public function get AxisCount():int

Gets the number of axes on this accelerometer.

Functions

getAcceleration

public function getAcceleration(index: int):Number

Gets the acceleration of a axis.

Parameters

indexacceleration axis

getAccelerationMin

public function getAccelerationMin(index: int):Number

Gets the minimum acceleration that an axis will return.

Parameters

indexacceleration axis

getAccelerationMax

public function getAccelerationMax(index: int):Number

Gets the maximum acceleration that an axis will return.

Parameters

indexacceleration index

getAccelerationChangeTrigger

public function getAccelerationChangeTrigger(index: int):Number

Gets the change trigger for an axis.

Parameters

indexacceleration axis

setAccelerationChangeTrigger

public function setAccelerationChangeTrigger(index: int,
val: Number):void

Sets the change trigger for an axis.

Parameters

indexacceleration axis
valchange trigger
Base Phidget class from which all specific device classes inherit.
public function get AxisCount():int
Gets the number of axes on this accelerometer.
public function getAcceleration(index: int):Number
Gets the acceleration of a axis.
public function getAccelerationMin(index: int):Number
Gets the minimum acceleration that an axis will return.
public function getAccelerationMax(index: int):Number
Gets the maximum acceleration that an axis will return.
public function getAccelerationChangeTrigger(index: int):Number
Gets the change trigger for an axis.
public function setAccelerationChangeTrigger(index: int,
val: Number):void
Sets the change trigger for an axis.
Close