diff --git a/sw/airborne/subsystems/gps.c b/sw/airborne/subsystems/gps.c index 5d6ccbb9ea..489b97be82 100644 --- a/sw/airborne/subsystems/gps.c +++ b/sw/airborne/subsystems/gps.c @@ -45,7 +45,6 @@ struct GpsState gps; struct GpsTimeSync gps_time_sync; -#ifndef GPS_TYPE_H #ifndef PrimaryGpsImpl #warning "PrimaryGpsImpl not set!" @@ -80,8 +79,6 @@ struct GpsInstance {; struct GpsInstance GpsInstances[GPS_NUM_INSTANCES]; -#endif - #if PERIODIC_TELEMETRY #include "subsystems/datalink/telemetry.h" @@ -278,9 +275,6 @@ void gps_init(void) #ifdef GPS_LED LED_OFF(GPS_LED); #endif -#ifdef GPS_TYPE_H - gps_impl_init(); -#endif #ifdef PrimaryGpsImpl PrimaryGpsRegister(); #endif diff --git a/sw/airborne/subsystems/gps.h b/sw/airborne/subsystems/gps.h index 5507cbf35c..09c87aa3ff 100644 --- a/sw/airborne/subsystems/gps.h +++ b/sw/airborne/subsystems/gps.h @@ -67,17 +67,6 @@ #define GPS_VALID_HMSL_BIT 5 #define GPS_VALID_COURSE_BIT 6 -/* GPS model specific implementation or sim */ -#ifdef GPS_TYPE_H -#include GPS_TYPE_H -#ifndef GPS_NB_CHANNELS -#define GPS_NB_CHANNELS 1 -#endif - -#endif - -#ifndef GPS_TYPE_H - #define PRIMARY_GPS_INSTANCE 0 #define SECONDARY_GPS_INSTANCE 1 @@ -100,8 +89,6 @@ #endif extern uint8_t multi_gps_mode; -#endif - /** data structure for Space Vehicle Information of a single satellite */ struct SVinfo {