def get_speed(self):
        """Getter for motor's speed as % of max (same as duty cycle).

        :returns: Current motor speed as percent of max speed.

        """
        return int(round((self.pwm.duty / float(self.pwm.period)) * 100))
dataset/ETHPy150Open IEEERobotics/bot/bot/hardware/motor.py/Motor.get_speed/original