def _write_value(self, value):
    'Sets motor value between [-1, 1]'
    if (abs(value) <= 0.05):
        value = 0.0
    mapped_value = int((1300.0 * ((self.alpha * value) + self.beta)))
    speed = min(max(mapped_value, (- 1300)), 1300)
    self._motor.setSpeed(speed)
Sets motor value between [-1, 1]
def _write_value(self, value):
    
    if (abs(value) <= 0.05):
        value = 0.0
    mapped_value = int((1300.0 * ((self.alpha * value) + self.beta)))
    speed = min(max(mapped_value, (- 1300)), 1300)
    self._motor.setSpeed(speed)