getDistance

fun getDistance(unit: DistanceUnit = Inches, id: Int? = null): Distance?

Returns the straight-line distance (hypotenuse) from the robot to the AprilTag matching id (or any visible tag if id is null) in the given unit.