Exemple #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)
Exemple #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)
Exemple #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")
Exemple #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")
 def reset(self) -> None:
     """Reset the Encoder distance to zero. Resets the current count to
     zero on the encoder.
     """
     hal.resetEncoder(self.encoder)
Exemple #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)