AP_Mission: tidy includes

This commit is contained in:
Peter Barker 2022-03-01 12:19:11 +11:00 committed by Andrew Tridgell
parent a08025125b
commit 445b10d8b3
2 changed files with 4 additions and 2 deletions

View File

@ -12,11 +12,12 @@
*/
#pragma once
#include <AP_HAL/AP_HAL.h>
#ifndef HAL_MISSION_ENABLED
#define HAL_MISSION_ENABLED 1
#endif
#include <AP_HAL/AP_HAL.h>
#include <GCS_MAVLink/GCS_MAVLink.h>
#include <AP_Math/AP_Math.h>
#include <AP_Common/AP_Common.h>

View File

@ -3,7 +3,7 @@
#include "AP_Mission_ChangeDetector.h"
extern const AP_HAL::HAL& hal;
#if HAL_MISSION_ENABLED
// detect external changes to mission
bool AP_Mission_ChangeDetector::check_for_mission_change()
@ -59,3 +59,4 @@ bool AP_Mission_ChangeDetector::check_for_mission_change()
return cmds_changed && !curr_cmd_idx_changed;
}
#endif // AP_MISSION_ENABLED