Skip to content

Commit 1149178

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

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/message_reader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
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()}')
18-
print(f'TOUCH: {alvik.touch_bits}')
18+
print(f'TOUCH (UP): {alvik.get_touch_up()}')
1919
print(f'RGB: {alvik.red} {alvik.green} {alvik.blue}')
2020
print(f'LINE: {alvik.left_line} {alvik.center_line} {alvik.right_line}')
2121
print(f'SOC: {alvik.get_battery_charge()}%')

examples/test_idle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
try:
1212

1313
if alvik.is_on():
14-
print(f'VER: {alvik.version}')
14+
print(f'VER: {alvik.get_version()}')
1515
print(f'LSP: {alvik.left_wheel.get_speed()}')
1616
alvik.set_wheels_speed(speed, speed)
1717
speed = (speed + 1) % 30

0 commit comments

Comments
 (0)