mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-21 16:18:29 -04:00
AP_RangeFinder: add and use AP_RangeFinder_config.h
This commit is contained in:
parent
54aca7dc0d
commit
3eae62c69a
@ -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
|
||||
|
11
libraries/AP_RangeFinder/AP_RangeFinder_config.h
Normal file
11
libraries/AP_RangeFinder/AP_RangeFinder_config.h
Normal 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
|
Loading…
Reference in New Issue
Block a user