Skip to content

Commit a8451aa

Browse files
committed
fix bug
1 parent da59baa commit a8451aa

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

pymycobot/common.py

+3
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,9 @@ def _coord2int(self, coord):
383383

384384
def _int2angle(self, _int):
385385
return round(_int / 100.0, 3)
386+
387+
def _int2angle1(self, _int):
388+
return round(_int / 1000.0, 3)
386389

387390
def _int2coord(self, _int):
388391
return round(_int / 10.0, 2)

pymycobot/pro400.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def _mesg(self, genre, *args, **kwargs):
177177
]:
178178
return self._process_single(res)
179179
elif genre in [ProtocolCode.GET_ANGLES]:
180-
return [self._int2angle(angle) for angle in res]
180+
return [self._int2angle1(angle) for angle in res]
181181
elif genre in [
182182
ProtocolCode.GET_COORDS,
183183
ProtocolCode.MERCURY_GET_BASE_COORDS,

0 commit comments

Comments
 (0)