pub fn clear_revolution_counter(&mut self, motor_id: u8) -> Result<(), crate::TransferError> {
		if motor_id == packet_id::BROADCAST {
			self.broadcast_clear_revolution_counter()?;
		} else {
			let response = self.transfer_single(motor_id, instruction_id::CLEAR, CLEAR_REVOLUTION_COUNT.len(), encode_parameters)?;
			crate::InvalidParameterCount::check(response.parameters().len(), 0).map_err(crate::ReadError::from)?;
		}
		Ok(())
	}
/// Clear the multi-revolution counter of a motor.
///
/// This will reset the "present position" register to a value between 0 and a whole revolution.
/// It is not possible to clear the revolution counter of a motor while it is moving.
/// Doing so will cause the motor to return an error, and the revolution counter will not be reset.
///
/// The `motor_id` parameter may be set to [`packet_id::BROADCAST`],
/// although the [`Self::broadcast_clear_revolution_counter`] is generally easier to use.
Clear the multi-revolution counter of a motor.
This will reset the "present position" register to a value between 0 and a whole revolution.
It is not possible to clear the revolution counter of a motor while it is moving.
Doing so will cause the motor to return an error, and the revolution counter will not be reset.


Clear the multi - revolution counter of a motor . This will reset the " present position " register to a value between 0 and a whole revolution . It is not possible to clear the revolution counter of a motor while it is moving . Doing so will cause the motor to return an error and the revolution counter will not be reset .
pub fn clear_revolution_counter(&mut self, motor_id: u8) -> Result<(), crate::TransferError> {
		if motor_id == packet_id::BROADCAST {
			self.broadcast_clear_revolution_counter()?;
		} else {
			let response = self.transfer_single(motor_id, instruction_id::CLEAR, CLEAR_REVOLUTION_COUNT.len(), encode_parameters)?;
			crate::InvalidParameterCount::check(response.parameters().len(), 0).map_err(crate::ReadError::from)?;
		}
		Ok(())
	}
pub fn clear_revolution_counter ( & mut self , motor_id : u8 ) -> Result < ( ) , crate :: TransferError > { if motor_id == packet_id :: BROADCAST { self . broadcast_clear_revolution_counter ( ) ? ; } else { let response = self . transfer_single ( motor_id , instruction_id :: CLEAR , CLEAR_REVOLUTION_COUNT . len ( ) , encode_parameters ) ? ; crate :: InvalidParameterCount :: check ( response . parameters ( ) . len ( ) , 0 ) . map_err ( crate :: ReadError :: from ) ? ; } Ok ( ( ) ) }
Clear the multi-revolution counter of a motor.
Clear the multi - revolution counter of a motor .
&mut self
motor_id
u8
&mut self
motor_id
u8