mirror of
https://github.com/undera/pylgbst.git
synced 2020-11-18 19:37:26 -08:00
peripheral:EncodedMotor: fixed goto_position() (#50)
This commit is contained in:
parent
d1019ac9f4
commit
69b234b924
@ -418,8 +418,8 @@ class EncodedMotor(Motor):
|
||||
|
||||
params += pack("<b", self._speed_abs(speed))
|
||||
|
||||
params += pack("<B", end_state)
|
||||
params += pack("<B", int(100 * max_power))
|
||||
params += pack("<B", end_state)
|
||||
params += pack("<B", use_profile)
|
||||
|
||||
self._send_cmd(self.SUBCMD_GOTO_ABSOLUTE_POSITION, params)
|
||||
|
Loading…
x
Reference in New Issue
Block a user