Esempio n. 1
0
 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)
Esempio n. 2
0
 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)
Esempio n. 3
0
 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")
Esempio n. 4
0
 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")
Esempio n. 5
0
 def reset(self) -> None:
     """Reset the Encoder distance to zero. Resets the current count to
     zero on the encoder.
     """
     hal.resetEncoder(self.encoder)
Esempio n. 6
0
 def reset(self) -> None:
     """Reset the Encoder distance to zero. Resets the current count to
     zero on the encoder.
     """
     hal.resetEncoder(self.encoder)