AP_Follow: add and use AP_FOLLOW_ENABLED

This commit is contained in:
Shiv Tyagi 2023-08-11 17:57:17 +05:30 committed by Andrew Tridgell
parent 932ed9ff28
commit 6251b3e3f3
3 changed files with 16 additions and 0 deletions

View File

@ -13,6 +13,10 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "AP_Follow_config.h"
#if AP_FOLLOW_ENABLED
#include <AP_HAL/AP_HAL.h>
#include "AP_Follow.h"
#include <ctype.h>
@ -534,3 +538,5 @@ AP_Follow &follow()
}
}
#endif

View File

@ -13,6 +13,9 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include "AP_Follow_config.h"
#if AP_FOLLOW_ENABLED
#include <AP_Common/AP_Common.h>
#include <AP_Common/Location.h>
@ -160,3 +163,5 @@ private:
namespace AP {
AP_Follow &follow();
};
#endif

View File

@ -0,0 +1,5 @@
#pragma once
#ifndef AP_FOLLOW_ENABLED
#define AP_FOLLOW_ENABLED 1
#endif