I based this on the java example, but the java Ultrasonic class seems to have some methods that are not in the robotpy, at least not according to the most recent documentation. Therefore I am not using the methods getRangeMM and getRangeInches, but instead show using getRange. If you would like me to do the conversions I can do that.
I based this on the java example, but the java Ultrasonic class seems to have some methods that are not in the robotpy, at least not according to the most recent documentation. Therefore I am not using the methods
getRangeMM
andgetRangeInches
, but instead show usinggetRange
. If you would like me to do the conversions I can do that.