Skip to content

Commit 27cc769

Browse files
committed
fix: examples must not access class parameters directly
1 parent 1149178 commit 27cc769

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/message_reader.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010

1111
while True:
1212
try:
13-
print(f'VER: {alvik.version}')
13+
print(f'VER: {alvik.get_version()}')
1414
print(f'LSP: {alvik.left_wheel.get_speed()}')
1515
print(f'RSP: {alvik.right_wheel.get_speed()}')
1616
print(f'LPOS: {alvik.left_wheel.get_position()}')
1717
print(f'RPOS: {alvik.right_wheel.get_position()}')
1818
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}')
19+
print(f'RGB: {alvik.get_color()}')
20+
print(f'LINE: {alvik.get_line_sensors()}')
2121
print(f'SOC: {alvik.get_battery_charge()}%')
2222

2323
alvik.set_wheels_speed(speed, speed)

0 commit comments

Comments
 (0)