mirror of
https://github.com/brendanhaines/ECEN5458_Project.git
synced 2025-07-30 20:41:45 -06:00
clip motor values
This commit is contained in:
@@ -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):
|
||||
|
Reference in New Issue
Block a user