9
0
Fork 0

add line value and threshold

This commit is contained in:
Silver Kuusik 2019-02-04 20:46:12 +01:00
parent 3ee9128c0b
commit f9f01dca55
1 changed files with 6 additions and 2 deletions

View File

@ -17,10 +17,14 @@ def step():
sumorobot.is_line(RIGHT)
# Update scope
scope = dict(
line_left = sumorobot.get_line(LEFT),
line_right = sumorobot.get_line(RIGHT),
left_line = sumorobot.get_line(LEFT),
right_line = sumorobot.get_line(RIGHT),
opponent = sumorobot.get_opponent_distance(),
battery_voltage = sumorobot.get_battery_voltage(),
left_line_value = sumorobot.config["left_line_value"],
right_line_value = sumorobot.config["right_line_value"],
left_line_threshold = sumorobot.config["left_line_threshold"],
right_line_threshold = sumorobot.config["right_line_threshold"]
)
# Execute code
try: