clip motor values

This commit is contained in:
Brendan Haines 2020-04-08 14:47:33 -06:00
parent 0a7e1cd9df
commit 889ce361ba

View File

@ -135,6 +135,7 @@ def controller():
# Calculate output
new_c += fir_taps[0] * line_position
motor_speed += steering_sign * new_c
np.clip(motor_speed, -1, 1)
# Update motors
for ii in range(3):