![Hiwonder SpiderPi Скачать руководство пользователя страница 24](http://html1.mh-extra.com/html/hiwonder/spiderpi/spiderpi_user-manual_2140532024.webp)
Image 6-3 Open Ultrasonic Obstacle Avoidance Program
2 ) Enter "23" , then press and hold the "shift+g" button on the keyboard
to automatically jump to the 23rd line. Press the "i" button on the keyboard
to enter the editor mode. The
“40”
shown on the red box below is the
ultrasonic default distance unit centimetres. When the obstacle distance is
greater than 40 cm or can
’
t detect any object ( distance value equal 0 ), the
robot will go forward. If you want to shorten the default distance, Enter
other numbers in it.
Image 6-4 Modify Ultrasonic Detection Distance
3 ) These three "( 10,200 ) " commands in the red frame determine the
angle of rotation of the robot after encountering obstacles. After
modification, the robot can rotate with different angles after encountering
obstacles
Содержание SpiderPi
Страница 1: ......
Страница 8: ...Image 2 5 Control System Interface Image 2 6 Switching the Gameplay...