6 void UpdateSensorLatency(
double time, gpointer cur_reading, GSList **history,
double latency, gpointer sensor_reading)
12 *history = g_slist_prepend(*history, cur_read);
14 GSList *last = g_slist_last(*history);
15 while (last && ((
struct BoozDatedSensor *)last->data)->time < time - latency) {
16 *history = g_slist_remove_link(*history, last);
20 last = g_slist_last(*history);
28 gpointer sensor_reading)
33 cur_read->
value = (
double *) g_memdup(cur_reading,
sizeof(
double));
34 *history = g_slist_prepend(*history, cur_read);
36 GSList *last = g_slist_last(*history);
38 *history = g_slist_remove_link(*history, last);
42 last = g_slist_last(*history);
void UpdateSensorLatency(double time, gpointer cur_reading, GSList **history, double latency, gpointer sensor_reading)
#define VECT3_COPY(_a, _b)
void UpdateSensorLatency_Single(double time, gpointer cur_reading, GSList **history, double latency, gpointer sensor_reading)
Paparazzi generic algebra macros.
struct DoubleVect3 * value