cleanup
This commit is contained in:
parent
8fcec4b17c
commit
c499090cdb
2
dmi.py
2
dmi.py
|
@ -55,7 +55,7 @@ def main():
|
||||||
|
|
||||||
if stabilizer.locked():
|
if stabilizer.locked():
|
||||||
position = position_tracker.input(samples_ref, samples_meas)
|
position = position_tracker.input(samples_ref, samples_meas)
|
||||||
position_acc += np.sum(position)/len(position)
|
position_acc += np.mean(position)
|
||||||
if throttle == 0:
|
if throttle == 0:
|
||||||
gui.update_position(position_acc/throttle_factor)
|
gui.update_position(position_acc/throttle_factor)
|
||||||
position_acc = 0.0
|
position_acc = 0.0
|
||||||
|
|
Loading…
Reference in New Issue