ArduCopter: correct logging when rally disabled

This commit is contained in:
Peter Barker 2023-09-04 20:05:11 +10:00 committed by Peter Barker
parent 34524d3475
commit 26b7092c1a
2 changed files with 12 additions and 0 deletions

View File

@ -13,6 +13,10 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <AP_Rally/AP_Rally_config.h>
#if HAL_RALLY_ENABLED
#include <AP_Common/Location.h>
#include "Copter.h"
@ -28,3 +32,5 @@ bool AP_Rally_Copter::is_valid(const Location &rally_point) const
#endif
return true;
}
#endif // HAL_RALLY_ENABLED

View File

@ -14,6 +14,10 @@
*/
#pragma once
#include <AP_Rally/AP_Rally_config.h>
#if HAL_RALLY_ENABLED
#include <AP_Rally/AP_Rally.h>
#include <AP_AHRS/AP_AHRS.h>
@ -28,3 +32,5 @@ public:
private:
bool is_valid(const Location &rally_point) const override;
};
#endif // HAL_RALLY_ENABLED