blobmsg_add_u8(&b, "signal", 0);
} else {
blobmsg_add_u32(&b, "age", now.tv_sec - stamp.tv_sec);
- blobmsg_add_string(&b, "lattitude", lattitude);
+ blobmsg_add_string(&b, "latitude", latitude);
blobmsg_add_string(&b, "longitude", longitude);
blobmsg_add_string(&b, "elivation", elivation);
blobmsg_add_string(&b, "course", course);
} nmea_params[MAX_NMEA_PARAM];
static int nmea_bad_time;
-char longitude[32] = { 0 }, lattitude[32] = { 0 }, course[16] = { 0 }, speed[16] = { 0 }, elivation[16] = { 0 };
+char longitude[32] = { 0 }, latitude[32] = { 0 }, course[16] = { 0 }, speed[16] = { 0 }, elivation[16] = { 0 };
int gps_valid = 0;
static void
LOG("position: %d°%d'%.1f\" %d°%d'%.1f\"\n",
latd, latm, flats, lngd, lngm, flngs);
- snprintf(lattitude, sizeof(lattitude), "%d.%d", latd, ms_to_deg(latm, lats));
+ snprintf(latitude, sizeof(latitude), "%d.%d", latd, ms_to_deg(latm, lats));
snprintf(longitude, sizeof(longitude), "%d.%d", lngd, ms_to_deg(lngm, lngs));
- LOG("position: %s %s\n", lattitude, longitude);
+ LOG("position: %s %s\n", latitude, longitude);
gps_timestamp();
}
}
#include <libubox/ustream.h>
-extern char longitude[32], lattitude[32], course[16], speed[16], elivation[16];
+extern char longitude[32], latitude[32], course[16], speed[16], elivation[16];
extern int nmea_open(char *dev, struct ustream_fd *s, speed_t speed);
extern void gps_timestamp(void);