def getDistance(self) -> float: """Get the distance the robot has driven since the last reset. :returns: The distance driven since the last reset as scaled by the value from :func:`setDistancePerPulse`. """ return hal.getEncoderDistance(self.encoder)