#define ao_log_start()
#define ao_log_stop()
- #define AO_MS_TO_TICKS(ms) ((ms) / 10)
- #define AO_NS_TO_TICKS(ns) ((ns) / (10000000L))
- #define AO_SEC_TO_TICKS(s) ((s) * 100)
-#ifndef AO_HERTZ
-#define AO_HERTZ 100
-#endif
+ #define AO_MS_TO_TICKS(ms) ((ms) / (1000 / AO_HERTZ))
+ #define AO_SEC_TO_TICKS(s) ((AO_TICK_TYPE) (s) * AO_HERTZ)
+ #define AO_NS_TO_TICKS(ns) ((ns) / (1000000000L / AO_HERTZ))
#define AO_FLIGHT_TEST
KALMAN=make-kalman
-CFLAGS=-I.. -I. -I../kernel -I../drivers -I../micropeak -I../product -I../lisp -O0 -g -Wall -DAO_LISP_TEST -no-pie
+CFLAGS=-I.. -I. -I../kernel -I../drivers -I../product -I../lisp -O0 -g -Wall -DAO_LISP_TEST -no-pie
- all: $(PROGS) ao_aprs_data.wav
+ #all: $(PROGS) ao_aprs_data.wav
+ all: ao_gps_test_mosaic
clean::
rm -f $(PROGS) ao_aprs_data.wav run-out.baro run-out.full
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include <stdbool.h>
#include <fcntl.h>
#include <unistd.h>
+
#define AO_GPS_NUM_SAT_MASK (0xf << 0)
#define AO_GPS_NUM_SAT_SHIFT (0)