From 72d9f52d3b01d2fd30a35d3bbf6f671604a548e5 Mon Sep 17 00:00:00 2001 From: "deweibel@gmail.com" Date: Wed, 16 Feb 2011 18:19:07 +0000 Subject: [PATCH] Small bug fix for HIL gps when using auto-detect git-svn-id: https://arducopter.googlecode.com/svn/trunk@1663 f9c3cf11-9bcb-44bc-f272-b75c42450872 --- libraries/AP_GPS/AP_GPS_HIL.h | 2 +- libraries/AP_GPS/GPS.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libraries/AP_GPS/AP_GPS_HIL.h b/libraries/AP_GPS/AP_GPS_HIL.h index c8f8764ad2..6c96c69c8b 100644 --- a/libraries/AP_GPS/AP_GPS_HIL.h +++ b/libraries/AP_GPS/AP_GPS_HIL.h @@ -30,7 +30,7 @@ public: * @param speed_3d - ground speed in meters/second * @param altitude - altitude in meters */ - void setHIL(long time, float latitude, float longitude, float altitude, + virtual void setHIL(long time, float latitude, float longitude, float altitude, float ground_speed, float ground_course, float speed_3d, uint8_t num_sats); private: diff --git a/libraries/AP_GPS/GPS.h b/libraries/AP_GPS/GPS.h index 00d3c09d51..52c0c98176 100644 --- a/libraries/AP_GPS/GPS.h +++ b/libraries/AP_GPS/GPS.h @@ -91,6 +91,10 @@ public: // Debug support bool print_errors; ///< deprecated + + // HIL support + virtual void setHIL(long time, float latitude, float longitude, float altitude, + float ground_speed, float ground_course, float speed_3d, uint8_t num_sats); protected: Stream *_port; ///< port the GPS is attached to