AP_RangeFinder: add and use AP_RangeFinder_config.h

This commit is contained in:
Peter Barker 2023-04-05 22:59:30 +10:00 committed by Peter Barker
parent 54aca7dc0d
commit 3eae62c69a
2 changed files with 13 additions and 8 deletions

View File

@ -14,6 +14,8 @@
*/
#pragma once
#include "AP_RangeFinder_config.h"
#include <AP_Common/AP_Common.h>
#include <AP_HAL/AP_HAL_Boards.h>
#include <AP_HAL/Semaphores.h>
@ -22,14 +24,6 @@
#include <AP_MSP/msp.h>
#include "AP_RangeFinder_Params.h"
#ifndef AP_RANGEFINDER_ENABLED
#define AP_RANGEFINDER_ENABLED 1
#endif
#ifndef AP_RANGEFINDER_BACKEND_DEFAULT_ENABLED
#define AP_RANGEFINDER_BACKEND_DEFAULT_ENABLED AP_RANGEFINDER_ENABLED
#endif
// Maximum number of range finder instances available on this platform
#ifndef RANGEFINDER_MAX_INSTANCES
#if AP_RANGEFINDER_ENABLED

View File

@ -0,0 +1,11 @@
#pragma once
#include <AP_HAL/AP_HAL_Boards.h>
#ifndef AP_RANGEFINDER_ENABLED
#define AP_RANGEFINDER_ENABLED 1
#endif
#ifndef AP_RANGEFINDER_BACKEND_DEFAULT_ENABLED
#define AP_RANGEFINDER_BACKEND_DEFAULT_ENABLED AP_RANGEFINDER_ENABLED
#endif