Hcsr04.TryGetDistance(Length) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Try to gets the current distance, , usual range from 2 cm to 400 cm
public bool TryGetDistance (out UnitsNet.Length result);
member this.TryGetDistance : Length -> bool
Public Function TryGetDistance (ByRef result As Length) As Boolean
Parameters
- result
- UnitsNet.Length
Length
Returns
True if success
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for