Skip to content

Commit 2618faf

Browse files
authored
Remove whitespace from merged files
1 parent dd66dd0 commit 2618faf

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

donkeycar/parts/gps_imu_fusion.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,15 @@ def run(self, gps, accel, gyro, quat):
8888
# ---------------------------------------------------------
8989
# 2. PREDICTION STEP
9090
# ---------------------------------------------------------
91-
if abs(ay) < 0.2:
91+
if abs(ay) < 0.2:
9292
ay = 0.0
9393

9494
# Calculate true acceleration by subtracting our estimated bias
9595
true_ax = ay - self.x[4, 0]
9696

9797
# 2. Velocity Decay (Artificial Friction)
9898
# Multiplier slowly bleeds off fake velocity generated by GPS noise
99-
friction_factor = 0.95
99+
friction_factor = 0.95
100100
v_pred = (self.x[3, 0] * friction_factor) + (true_ax * dt)
101101

102102
# Non-linear state transition

donkeycar/parts/imu.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,4 +188,3 @@ def shutdown(self):
188188
print(data)
189189
time.sleep(0.1)
190190
iter += 1
191-

donkeycar/templates/complete.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ def run(self, accel, gyro):
382382
return list(accel) + list(gyro)
383383

384384
# Add it to the vehicle loop
385-
V.add(Vectorizer(),
385+
V.add(Vectorizer(),
386386
inputs=['imu/accel', 'imu/gyro'],
387387
outputs=['imu_array'])
388388
inputs = ['cam/image_array', 'imu_array']
@@ -923,7 +923,7 @@ def add_imu(V, cfg):
923923
if cfg.IMU_SENSOR.lower() == "bno08x":
924924
from donkeycar.parts.imu import Bno08xIMU
925925
imu = Bno08xIMU(addr=cfg.IMU_ADDRESS)
926-
V.add(imu,
926+
V.add(imu,
927927
outputs=['imu/accel', 'imu/gyro', 'imu/quat'],
928928
threaded=True)
929929
else:

0 commit comments

Comments
 (0)