diff --git a/ArduPlane/APM_Config.h b/ArduPlane/APM_Config.h index 7282760e37..0b6ab4d724 100644 --- a/ArduPlane/APM_Config.h +++ b/ArduPlane/APM_Config.h @@ -5,7 +5,6 @@ // For example if you wanted the Port 3 baud rate to be 38400 you would add a statement like the one below (uncommented) //#define SERIAL3_BAUD 38400 -//#define GCS_PROTOCOL GCS_PROTOCOL_NONE // You may also put an include statement here to point at another configuration file. This is convenient if you maintain diff --git a/ArduPlane/APM_Config_mavlink_hil.h b/ArduPlane/APM_Config_mavlink_hil.h index 23968a9773..38cff467b5 100644 --- a/ArduPlane/APM_Config_mavlink_hil.h +++ b/ArduPlane/APM_Config_mavlink_hil.h @@ -13,9 +13,6 @@ #define FLIGHT_MODE_5 STABILIZE #define FLIGHT_MODE_6 MANUAL -// Hardware in the loop protocol -#define HIL_PROTOCOL HIL_PROTOCOL_MAVLINK - // HIL_MODE SELECTION // // Mavlink supports @@ -23,11 +20,6 @@ // 2. HIL_MODE_SENSORS: full sensor simulation #define HIL_MODE HIL_MODE_ATTITUDE -// You can set your gps protocol here for your actual -// hardware and leave it without affecting the hardware -// in the loop simulation -#define GPS_PROTOCOL GPS_PROTOCOL_MTK - // Sensors // All sensors are supported in all modes. // The magnetometer is not used in diff --git a/ArduPlane/GCS.h b/ArduPlane/GCS.h index 3fba61c76b..21aa40d7d1 100644 --- a/ArduPlane/GCS.h +++ b/ArduPlane/GCS.h @@ -99,7 +99,6 @@ protected: /// @class GCS_MAVLINK /// @brief The mavlink protocol for qgroundcontrol /// -#if GCS_PROTOCOL == GCS_PROTOCOL_MAVLINK || HIL_PROTOCOL == HIL_PROTOCOL_MAVLINK class GCS_MAVLINK : public GCS_Class { public: @@ -163,10 +162,6 @@ private: AP_Int16 streamRateExtra1; AP_Int16 streamRateExtra2; AP_Int16 streamRateExtra3; - - - }; -#endif // GCS_PROTOCOL_MAVLINK #endif // __GCS_H diff --git a/ArduPlane/config.h b/ArduPlane/config.h index ee2c149362..be76ce2426 100644 --- a/ArduPlane/config.h +++ b/ArduPlane/config.h @@ -111,17 +111,6 @@ # define GPS_PROTOCOL GPS_PROTOCOL_AUTO #endif -////////////////////////////////////////////////////////////////////////////// -// GCS_PROTOCOL -// GCS_PORT -// -#ifndef GCS_PROTOCOL -# define GCS_PROTOCOL GCS_PROTOCOL_MAVLINK -#endif -#ifndef GCS_PORT -# define GCS_PORT 3 -#endif - #ifndef MAV_SYSTEM_ID # define MAV_SYSTEM_ID 1 #endif diff --git a/ArduPlane/defines.h b/ArduPlane/defines.h index e905d02554..b049d477bd 100644 --- a/ArduPlane/defines.h +++ b/ArduPlane/defines.h @@ -51,21 +51,10 @@ #define CH_YAW CH_4 // HIL enumerations -#define HIL_PROTOCOL_XPLANE 1 -#define HIL_PROTOCOL_MAVLINK 2 - #define HIL_MODE_DISABLED 0 #define HIL_MODE_ATTITUDE 1 #define HIL_MODE_SENSORS 2 -// GCS enumeration -#define GCS_PROTOCOL_STANDARD 0 // standard APM protocol -#define GCS_PROTOCOL_LEGACY 1 // legacy ArduPilot protocol -#define GCS_PROTOCOL_XPLANE 2 // X-Plane HIL simulation -#define GCS_PROTOCOL_DEBUGTERMINAL 3 //Human-readable debug interface for use with a dumb terminal -#define GCS_PROTOCOL_MAVLINK 4 // binary protocol for qgroundcontrol -#define GCS_PROTOCOL_NONE -1 // No GCS output - // Auto Pilot modes // ---------------- #define MANUAL 0