Update Motor.py
This commit is contained in:
parent
a7de603298
commit
4b96a1a4a7
1 changed files with 0 additions and 2 deletions
|
@ -184,9 +184,7 @@ class Motor(object):
|
|||
if power < 0 or power > 100:
|
||||
raise ValueError(f'Power out of range: {str(power)}%')
|
||||
|
||||
print(power)
|
||||
requiredSpeed = Motor.__map(power, 0, 100, min(curve), max(curve))
|
||||
print(requiredSpeed)
|
||||
|
||||
return Motor.__interpolateSpeed(curve, requiredSpeed)
|
||||
|
||||
|
|
Reference in a new issue