mirror of
https://github.com/brendanhaines/ECEN5458_Project.git
synced 2024-12-26 19:08:16 -07:00
fix controller
This commit is contained in:
parent
656dc9b4d9
commit
6440cbf6bf
|
@ -132,7 +132,7 @@ def control_thread():
|
|||
# Precompute as much as possible
|
||||
c = time_data[:,2]
|
||||
e = time_data[:,1]
|
||||
new_c = fir_taps[1:] * e[-len(fir_taps)+1:] + iir_taps * c[-len(iir_taps):]
|
||||
new_c = np.sum(fir_taps[1:] * e[-len(fir_taps)+1:]) + np.sum(iir_taps * c[-len(iir_taps):])
|
||||
motor_speed = np.array([-1, 1, 0]) * base_speed
|
||||
|
||||
# Read error
|
||||
|
|
Loading…
Reference in New Issue
Block a user