def reset(self): """Reset the Encoder distance to zero. Resets the current count to zero on the encoder. """ if self.counter is not None: self.counter.reset() else: hal.resetEncoder(self.encoder)
def reset(self): """Reset the Encoder distance to zero. Resets the current count to zero on the encoder. """ if self.counter is not None: self.counter.reset() elif self.encoder is not None: hal.resetEncoder(self.encoder) else: raise ValueError("operation on freed port")
def reset(self) -> None: """Reset the Encoder distance to zero. Resets the current count to zero on the encoder. """ hal.resetEncoder(self.encoder)