We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1149178 commit 27cc769Copy full SHA for 27cc769
examples/message_reader.py
@@ -10,14 +10,14 @@
10
11
while True:
12
try:
13
- print(f'VER: {alvik.version}')
+ print(f'VER: {alvik.get_version()}')
14
print(f'LSP: {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()}')
18
print(f'TOUCH (UP): {alvik.get_touch_up()}')
19
- print(f'RGB: {alvik.red} {alvik.green} {alvik.blue}')
20
- print(f'LINE: {alvik.left_line} {alvik.center_line} {alvik.right_line}')
+ print(f'RGB: {alvik.get_color()}')
+ print(f'LINE: {alvik.get_line_sensors()}')
21
print(f'SOC: {alvik.get_battery_charge()}%')
22
23
alvik.set_wheels_speed(speed, speed)
0 commit comments