Platforms to show: All Mac Windows Linux Cross-Platform
Back to PhidgetDistanceSensorMBS class.
PhidgetDistanceSensorMBS.DistanceChanged(distance as UInt32)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Phidgets | MBS Phidgets Plugin | 22.1 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No |
If a DistanceChangeTrigger has been set to a non-zero value, the DistanceChange event will not occur until the distance has changed by at least the DistanceChangeTrigger value.
PhidgetDistanceSensorMBS.SonarReflectionsUpdated(distances() as UInt32, amplitudes() as UInt32)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Phidgets | MBS Phidgets Plugin | 22.1 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No |
If a DistanceChangeTrigger has been set to a non-zero value, the SonarReflectionsUpdate event will not occur until the distance has changed by at least the DistanceChangeTrigger value.
The closest reflection will be placed at index 0 of the distances array, and the furthest reflection at index 7.
If you are only interested in the closest reflection, you can simply use the DistanceChange event.
The values reported as amplitudes are relative amplitudes of the reflections that are normalized to an arbitrary scale.
distances: The reflection values
amplitudes: The amplitude values
count: The number of reflections detected
The items on this page are in the following plugins: MBS Phidgets Plugin.