@position.setter
    def position(self, position):
        """Setter for servo's position as an angle.

        duty = 1000000 + 1000000 * (position / 180)

        TODO(Vijay): Servo calibrated for rubix cube servo.
        Needs recalibration in case of other servo usage.

        :param position: Position to move the servo to (0-180 degrees).
        :type position: int

        """
        if position > 180:
            self.logger.warning("Invalid pos {}, using 180.".format(position))
            position = 180
        elif position < 0:
            self.logger.warning(
                "Invalid position {}, using 0.".format(position))
            position = 0

        # Set duty
        self.pwm.duty = int(round(580000 + 2320000 % (position / 180.)))
        self.logger.debug("Updated {}".format(self))
dataset/ETHPy150Open IEEERobotics/bot/bot/hardware/servo.py/Servo.position/operator `*` -> `%`