From 7c5e84d5724df92b7ab7e387ac606abfc7bf4094 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 4 Sep 2019 10:11:48 +1000 Subject: [PATCH] AP_Proximity: declare RangeFinder as a class to avoid circular include issue --- libraries/AP_Proximity/AP_Proximity.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Proximity/AP_Proximity.h b/libraries/AP_Proximity/AP_Proximity.h index a3e0e0cdd8..5055ccddb3 100644 --- a/libraries/AP_Proximity/AP_Proximity.h +++ b/libraries/AP_Proximity/AP_Proximity.h @@ -71,7 +71,7 @@ public: void update(void); // set pointer to rangefinder object - void set_rangefinder(const RangeFinder *rangefinder) { _rangefinder = rangefinder; } + void set_rangefinder(const class RangeFinder *rangefinder) { _rangefinder = rangefinder; } const RangeFinder *get_rangefinder() const { return _rangefinder; } // return sensor orientation and yaw correction