Skip to content

Commit cc1c644

Browse files
Truncated PanTilt Positions
1 parent a7f20c0 commit cc1c644

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/robobopy/processors/PTProcessor.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,23 +41,23 @@ def canProcess(self, msg):
4141
def movePan(self, pos, speed):
4242
name = "MOVEPAN"
4343
id = self.state.getId()
44-
values = {"pos":self.panBounds(self.externalAngleToInternal(pos)),
44+
values = {"pos": int(self.panBounds(self.externalAngleToInternal(pos))),
4545
"speed": int(speed)}
4646

4747
return Message(name, values, id)
4848

4949
def moveTilt(self, pos, speed):
5050
name = "MOVETILT"
5151
id = self.state.getId()
52-
values = {"pos":self.tiltBounds(pos),
52+
values = {"pos": int(self.tiltBounds(pos)),
5353
"speed": int(speed)}
5454

5555
return Message(name, values, id)
5656

5757
def movePanWait(self, pos, speed):
5858
name = "MOVEPAN-BLOCKING"
5959
id = self.state.getId()
60-
values = {"pos":self.panBounds(self.externalAngleToInternal(pos)),
60+
values = {"pos": int(self.panBounds(self.externalAngleToInternal(pos))),
6161
"speed": int(speed),
6262
"blockid": id}
6363

@@ -66,7 +66,7 @@ def movePanWait(self, pos, speed):
6666
def moveTiltWait(self, pos, speed):
6767
name = "MOVETILT-BLOCKING"
6868
id = self.state.getId()
69-
values = {"pos":self.tiltBounds(pos),
69+
values = {"pos": int(self.tiltBounds(pos)),
7070
"speed": int(speed),
7171
"blockid": id}
7272

0 commit comments

Comments
 (0)