Platforms to show: All Mac Windows Linux Cross-Platform

Back to OldPhidgetSpatialMBS class.

OldPhidgetSpatialMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 11.0 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The constructor.

On success the handle value is not zero.
Lasterror is set.

OldPhidgetSpatialMBS.getAcceleration(index as Integer) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 11.0 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Gets the current acceleration of an axis.

index: The acceleration index.
Returns the acceleration in gs.
Lasterror is set.

OldPhidgetSpatialMBS.getAccelerationAxisCount as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 11.0 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Gets the number of acceleration axes supplied by this board.

OldPhidgetSpatialMBS.getAccelerationMax(index as Integer) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 11.0 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Gets the maximum accleration supported by an axis.

index: The acceleration index.
Lasterror is set.

OldPhidgetSpatialMBS.getAccelerationMin(index as Integer) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 11.0 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Gets the minimum acceleration supported by an axis.

index: The acceleration index.

OldPhidgetSpatialMBS.getAngularRate(index as Integer) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 11.0 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Gets the current angular rate of an axis.

Returns the angular rate in degrees/second.
index: The angular rate index.
Lasterror is set.

OldPhidgetSpatialMBS.getAngularRateMax(index as Integer) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 11.0 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Gets the maximum angular rate supported by an axis.

index: The angular rate index.
Lasterror is set.

OldPhidgetSpatialMBS.getAngularRateMin(index as Integer) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 11.0 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Gets the minimum angular rate supported by an axis.

index: The angular rate index.
Lasterror is set.

OldPhidgetSpatialMBS.getCompassAxisCount as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 11.0 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Gets the number of compass axes supplied by this board.

Lasterror is set.

OldPhidgetSpatialMBS.getDataRate as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 11.0 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Queries the data rate in milliseconds.

Lasterror is set.

OldPhidgetSpatialMBS.getDataRateMax as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 11.0 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Gets the maximum supported data rate in milliseconds.

Lasterror is set.

OldPhidgetSpatialMBS.getDataRateMin as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 11.0 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Gets the minimum supported data rate in milliseconds.

Lasterror is set.

OldPhidgetSpatialMBS.getGyroAxisCount as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 11.0 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Gets the number of gyroscope axes supplied by this board.

Lasterror is set.

OldPhidgetSpatialMBS.getMagneticField(index as Integer) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 11.0 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Gets the current magnetic field stregth of an axis.

index: The magnetic field index.
Returns the magnetic field strength in Gauss.
Lasterror is set.

OldPhidgetSpatialMBS.getMagneticFieldMax(index as Integer) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 11.0 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Gets the maximum magnetic field stregth supported by an axis.

index: The magnetic field index.
Lasterror is set.

OldPhidgetSpatialMBS.getMagneticFieldMin(index as Integer) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 11.0 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Gets the minimum magnetic field stregth supported by an axis.

index: The magnetic field index.
Lasterror is set.

OldPhidgetSpatialMBS.resetCompassCorrectionParameters

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 11.0 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Resets the compass correction factors.

Magnetic field data will be presented directly as reported by the sensor.
Lasterror is set.

OldPhidgetSpatialMBS.setCompassCorrectionParameters(magField as Double, offset0 as Double, offset1 as Double, offset2 as Double, gain0 as Double, gain1 as Double, gain2 as Double, T0 as Double, T1 as Double, T2 as Double, T3 as Double, T4 as Double, T5 as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 11.0 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Sets the compass correction factors. This can be used to correcting any sensor errors, including hard and soft iron offsets and sensor error factors.

Lasterror is set.

magField: Local magnetic field strength.
offset0: Axis 0 offset correction.
offset1: Axis 1 offset correction.
offset2: Axis 2 offset correction.
gain0: Axis 0 gain correction.
gain1: Axis 1 gain correction.
gain2: Axis 2 gain correction.
T0: Non-orthogonality correction factor 0.
T1: Non-orthogonality correction factor 1.
T2: Non-orthogonality correction factor 2.
T3: Non-orthogonality correction factor 3.
T4: Non-orthogonality correction factor 4.
T5: Non-orthogonality correction factor 5.

OldPhidgetSpatialMBS.setDataRate(milliseconds as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 11.0 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Sets the data rate in milliseconds.

Lasterror is set.
Note that data at rates faster then 8ms will be delivered to events as an array of data.

OldPhidgetSpatialMBS.zeroGyro

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Phidgets MBS Phidgets Plugin 11.0 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Zeroes the gyroscope.

This takes about two seconds and the gyro zxes will report 0 during the process.
This should only be called when the board is not moving.

Lasterror is set.

The items on this page are in the following plugins: MBS Phidgets Plugin.


The biggest plugin in space...