mirror of https://github.com/ArduPilot/ardupilot
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/>.
|
||||
*/
|
||||
|
||||
#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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue