8000 Update index.md · robokoding/robokoding.github.io@6fd5e92 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6fd5e92

Browse files
authored
Update index.md
corrected sometypos. Removed parameter "LEFT" from get_battery_voltage.
1 parent d79fca2 commit 6fd5e92

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

_pages/kits/sumointerface/index.md

Lines changed: 6 additions & 6 deletions
**sumorobot.set_led(STATUS, False)**
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The move control block is used to move the robot in different directions. Use it
3434
The sleep control block is used to add sleep into the program. It is usually used in combination with the move (red) blocks to program a sequence of movements. The sleep command makes the robot wait until it moves on to the next direction / instruction.
3535

3636
![opponent](/assets/img/sumorobot/sumointerface/opponent.png)
37-
The opponent logic block is used for the frontal ditance sensor to detect other "opponent" robots or objects in front of the SumoRobot. Use it together with the if_do (green) block. Notice also the blue LED on the robot reacting to your hand in front of it.
37+
The opponent logic block is used for the frontal distance sensor to detect other "opponent" robots or objects in front of the SumoRobot. Use it together with the if_do (green) block. Notice also the blue LED on the robot reacting to your hand in front of it.
3838

3939
![line](/assets/img/sumorobot/sumointerface/line.png)
4040
The line logic block is used for the 2 line sensors below the robot, left and right. Use it together with the if_do (green) block. Notice also the yellow LEDs on the robot reacting when you lift or place the robot on the ground.
@@ -71,22 +71,22 @@ This will make the robot move in a direction for a certain time in case used tog
7171
This will return if the SumoRobot sees something in front of it or not. It is mainly used to detect the other opponent SumoRobot on the SumoField, but it can be used also to see any other objects in front of the SumoRobot. The SumoRobot is set by default to see 40cm. Use this in combination with a if, else clause and move command.
7272

7373
**sumorobot.is_line(LEFT)**
74-
This will return if the SumoRobot sees a line under the LEFT or RIGHT sensor. Therefore you can use LEFT or RIGHT with this command. Use it together with a if, else cluase and a move command.
74+
This will return if the SumoRobot sees a line under the LEFT or RIGHT sensor. Therefore you can use LEFT or RIGHT with this command. Use it together with a if, else clause and a move command.
7575

7676
**sumorobot.set_servo(LEFT, 100)**
7777
This will set the speed for a single servo motor. Use LEFT or RIGHT and values between -100 to 100. The negative values are for one direction and the positive values for the opposite direction.
7878

7979
80-
This will set the states of STAUTS, LEFT_LINE, RIGHT_LINE and OPPONENT LEDs. Use False or True. Currently the LEFT_LINE, RIGHT_LINE and OPPONENT LED will be overwritten by the feedback code, that shows if the SumoRobot sees a line or opponent.
80+
This will set the states of STATUS, LEFT_LINE, RIGHT_LINE and OPPONENT LEDs. Use False or True. Currently the LEFT_LINE, RIGHT_LINE and OPPONENT LED will be overwritten by the feedback code, that shows if the SumoRobot sees a line or opponent.
8181

8282
**sumorobot.get_opponent_distance()**
8383
This will return the distance value of the ultrasonic sensor that is in front of the robot in centimeters. Use this to see objects even futher away or react to objects that are closer to the SumoRobot. Use it in a if, else clause to compare it with different values. The returned value will be 0 to 200.
8484

8585
**sumorobot.get_line(LEFT)**
86-
This will return the brightness value from the line sensors, will be a value between 0 to 4096. Use it in a if, else caluse to compare it with different values, it might be possible to detect different colors.
86+
This will return the brightness value from the line sensors, will be a value between 0 to 4096. Use it in a if, else clause to compare it with different values, it might be possible to detect different colors.
8787

88-
**sumorobot.get_battery_voltage(LEFT)**
89-
This will return the battery voltage of the SumoRobot, it will be a value between 3.0 to 4.2. Use it in a if, else caluse to compare it with different values, to detect how empty or full the battery is. This can be used for charging indication or other purposes.
88+
**sumorobot.get_battery_voltage()**
89+
This will return the battery voltage of the SumoRobot, it will be a value between 3.0 to 4.2. Use it in a if, else clause to compare it with different values, to detect how empty or full the battery is. This can be used for charging indication or other purposes.
9090

9191
**sumorobot.calibrate_line_value()**
9292
This will set the line value to the current one the robot is seeing with both sensors. So it's best to place the robot to the white area of the SumoField or on a surface where it should not recognize a line.

0 commit comments

Comments
 (0)
0