Skip to content

Commit 8386165

Browse files
author
Aaron Brown
authored
fixing the indentation from adding throttle
1 parent 164811b commit 8386165

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

drive.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ def telemetry(sid, data):
3636
steering_angle = float(model.predict(image_array[None, :, :, :], batch_size=1))
3737
min_speed = 8
3838
max_speed = 10
39-
if float(speed) < min_speed:
40-
throttle = 1.0
41-
elif float(speed) > max_speed:
42-
throttle = -1.0
43-
else:
44-
throttle = 0.1
39+
if float(speed) < min_speed:
40+
throttle = 1.0
41+
elif float(speed) > max_speed:
42+
throttle = -1.0
43+
else:
44+
throttle = 0.1
4545

4646
print(steering_angle, throttle)
4747
send_control(steering_angle, throttle)

0 commit comments

Comments
 (0)