mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-12 09:33:59 -03:00
ArduCopter: correct logging when rally disabled
This commit is contained in:
parent
34524d3475
commit
26b7092c1a
@ -13,6 +13,10 @@
|
|||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
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 <AP_Common/Location.h>
|
||||||
|
|
||||||
#include "Copter.h"
|
#include "Copter.h"
|
||||||
@ -28,3 +32,5 @@ bool AP_Rally_Copter::is_valid(const Location &rally_point) const
|
|||||||
#endif
|
#endif
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // HAL_RALLY_ENABLED
|
||||||
|
@ -14,6 +14,10 @@
|
|||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <AP_Rally/AP_Rally_config.h>
|
||||||
|
|
||||||
|
#if HAL_RALLY_ENABLED
|
||||||
|
|
||||||
#include <AP_Rally/AP_Rally.h>
|
#include <AP_Rally/AP_Rally.h>
|
||||||
#include <AP_AHRS/AP_AHRS.h>
|
#include <AP_AHRS/AP_AHRS.h>
|
||||||
|
|
||||||
@ -28,3 +32,5 @@ public:
|
|||||||
private:
|
private:
|
||||||
bool is_valid(const Location &rally_point) const override;
|
bool is_valid(const Location &rally_point) const override;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif // HAL_RALLY_ENABLED
|
||||||
|
Loading…
Reference in New Issue
Block a user