     Serial.print(", ");
     Serial.println(current_loc.lng, 6);
     Serial.println(current_dist);
-    Serial.println(delta_dist);
-    Serial.println(get_avg());
+    Serial.println(current_bearing);
     Serial.println();
   }
 }

  double a = pow(sin(dlat/2), 2) + cos(from.lat) * cos(to.lat) * pow(sin(dlng/2), 2);
  double c = 2 * atan2(sqrt(a), sqrt(1-a));
  return EARTH_RADIUS * c;
}

// Stores a value for the sliding window average

  current_dist = distance(current_loc, current_dest);
  delta_dist = current_dist - last_dist;

  current_bearing = bearing(current_loc, current_dest);

  eta_time = -delta_time * current_dist / delta_dist;
  put_avg(eta_time / 1000);
}
