From 276240993be9365a12ba17d26a5fd6f246762cba Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 9 Apr 2024 19:36:47 +1000 Subject: [PATCH] Blimp: provide and use base class set_home_from_current_location --- Blimp/commands.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/Blimp/commands.cpp b/Blimp/commands.cpp index 1e06c22cbc83a7..8432b9dfa288c6 100644 --- a/Blimp/commands.cpp +++ b/Blimp/commands.cpp @@ -32,17 +32,3 @@ void Blimp::set_home_to_current_location_inflight() } } } - -// set_home_to_current_location - set home to current GPS location -bool Blimp::set_home_to_current_location(bool lock) -{ - // get current location from EKF - Location temp_loc; - if (ahrs.get_location(temp_loc)) { - if (!set_home(temp_loc, lock)) { - return false; - } - return true; - } - return false; -}