Skip to content

Commit 9240585

Browse files
committed
message_reader.py
fix: reading wrong wheel add: wheels position
1 parent 15580df commit 9240585

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/message_reader.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
try:
1313
print(f'VER: {alvik.version}')
1414
print(f'LSP: {alvik.left_wheel.get_speed()}')
15-
print(f'RSP: {alvik.left_wheel.get_speed()}')
15+
print(f'RSP: {alvik.right_wheel.get_speed()}')
16+
print(f'LPOS: {alvik.left_wheel.get_position()}')
17+
print(f'RPOS: {alvik.right_wheel.get_position()}')
1618
print(f'TOUCH: {alvik.touch_bits}')
1719
print(f'RGB: {alvik.red} {alvik.green} {alvik.blue}')
1820
print(f'LINE: {alvik.left_line} {alvik.center_line} {alvik.right_line}')

0 commit comments

Comments
 (0)