Users Manual

CLASS 4
114
Now you have to set the initial values of each variable. When you press the Run (activation) button, you need to
set the angle of the servo motor and the reference value of the sensor first. Let's set the value according to the
role of each variable!
Then, after pressing the Run button, press the button sensor connected to the tori autonomous vehicle, the Song
Generator will be able to broadcast a script to announce the autonomous driving start and to start the situation
recognition and judgment. Create a script like the one below.
The initial value of each variable depends on the sensors and servo motors you have, so you have to change them
manually. Please refer to the explanation above for setting the initial value of each variable. When you finish
setting the variable, first control the angle to move the servo motor forward. After that. Wait until button sensor
is pressed. Now when the button sensor is depressed, the SONG GENERATOR will make a five second sound and
announce the start of the car.
The 'is_Detect_obstacle' recognizes the obstacle and sets '0' as the initial value for the necessary variables to
judge. If you broadcast a script called 'motor_process' that starts the situation recognition and judgment, the first
setting is finished. Now create a script for 'Monitor_process'!
Setting the first value of the variable
Activities
Servo motor 전진 각도값
Servo motor left방향회전 각도값
Servo motor right방향회전 각도값
앞 쪽의 2개의 적외선 센서 기준값
초음파 센서 기준값
아래쪽의 2개의 적외선 센서 기준값