No sense wasting memory for a driver which won't get used.
Signed-off-by: Keith Packard <keithp@keithp.com>
return (int32_t) roundf(value);
}
-static void
-mosaic(void)
+void
+ao_gps_mosaic(void)
{
AO_TICK_TYPE packet_start_tick;
AO_TICK_TYPE solution_tick = 0;
#ifndef AO_GPS_TEST
- ao_config_get();
- if (!ao_config.gps_mosaic)
- ao_exit();
-
ao_cmd_register(&ao_mosaic_cmds[0]);
#endif
mosaic_setup();
}
}
-#ifndef AO_GPS_TEST
-static struct ao_task mosaic_task;
-
-void
-ao_gps_mosaic_init(void)
-{
- ao_add_task(&mosaic_task, mosaic, "mosaic");
-}
-#endif
-
#endif
#define _AO_GPS_MOSAIC_H_
void
-ao_gps_mosaic_init(void);
+ao_gps_mosaic(void);
struct sbf_header {
uint16_t crc;
#include "ao.h"
#endif
+#ifdef HAS_GPS_MOSAIC
+#include "ao_gps_mosaic.h"
+#endif
+
#include "ao_gps_ublox.h"
#define AO_UBLOX_DEBUG 0
#ifdef HAS_GPS_MOSAIC
ao_config_get();
- if (ao_config.gps_mosaic)
- ao_exit();
+ if (ao_config.gps_mosaic) {
+ ao_gps_mosaic();
+ return;
+ }
#endif
+#ifndef AO_GPS_TEST
ao_cmd_register(&ao_gps_cmds[0]);
+#endif
ao_gps_setup();
* Fifos
*/
+#ifndef AO_FIFO_SIZE
+#ifdef HAS_GPS_MOSAIC
+#define AO_FIFO_SIZE 256
+#else
#define AO_FIFO_SIZE 32
+#endif
+#endif
struct ao_fifo {
uint8_t insert;
#include <ao_companion.h>
#include <ao_profile.h>
#include <ao_eeprom.h>
-#ifdef HAS_GPS_MOSAIC
-#include <ao_gps_mosaic.h>
-#endif
#if HAS_SAMPLE_PROFILE
#include <ao_sample_profile.h>
#endif
ao_usb_init();
ao_gps_init();
-#ifdef HAS_GPS_MOSAIC
- ao_gps_mosaic_init();
-#endif
ao_gps_report_mega_init();
ao_telemetry_init();
ao_radio_init();
#include <ao_companion.h>
#include <ao_profile.h>
#include <ao_eeprom.h>
-#ifdef HAS_GPS_MOSAIC
-#include <ao_gps_mosaic.h>
-#endif
#if HAS_SAMPLE_PROFILE
#include <ao_sample_profile.h>
#endif
ao_usb_init();
ao_gps_init();
-#ifdef HAS_GPS_MOSAIC
- ao_gps_mosaic_init();
-#endif
ao_gps_report_mega_init();
ao_telemetry_init();
ao_radio_init();
#include <ao_profile.h>
#include <ao_eeprom.h>
#include <ao_i2c_bit.h>
-#ifdef HAS_GPS_MOSAIC
-#include <ao_gps_mosaic.h>
-#endif
#if HAS_SAMPLE_PROFILE
#include <ao_sample_profile.h>
#endif
ao_usb_init();
ao_gps_init();
-#ifdef HAS_GPS_MOSAIC
- ao_gps_mosaic_init();
-#endif
ao_gps_report_mega_init();
ao_telemetry_init();
ao_radio_init();
#include <ao_profile.h>
#include <ao_eeprom.h>
#include <ao_i2c_bit.h>
-#ifdef HAS_GPS_MOSAIC
-#include <ao_gps_mosaic.h>
-#endif
#if HAS_SAMPLE_PROFILE
#include <ao_sample_profile.h>
#endif
ao_usb_init();
ao_gps_init();
-#ifdef HAS_GPS_MOSAIC
- ao_gps_mosaic_init();
-#endif
ao_gps_report_mega_init();
ao_telemetry_init();
ao_radio_init();