mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_RPM: added AP_RPM_config.h
This commit is contained in:
parent
079a3e66af
commit
3b5561aa88
@ -19,6 +19,7 @@
|
||||
#include <AP_Param/AP_Param.h>
|
||||
#include <AP_Math/AP_Math.h>
|
||||
#include "AP_RPM_Params.h"
|
||||
#include "AP_RPM_config.h"
|
||||
|
||||
// Maximum number of RPM measurement instances available on this platform
|
||||
#define RPM_MAX_INSTANCES 2
|
||||
|
4
libraries/AP_RPM/AP_RPM_config.h
Normal file
4
libraries/AP_RPM/AP_RPM_config.h
Normal file
@ -0,0 +1,4 @@
|
||||
#pragma once
|
||||
|
||||
#define AP_RPM_ENABLED 1
|
||||
|
@ -16,6 +16,8 @@
|
||||
|
||||
#include "AP_RPM.h"
|
||||
|
||||
#define AP_RPM_SIM_ENABLED (CONFIG_HAL_BOARD == HAL_BOARD_SITL)
|
||||
|
||||
#if AP_RPM_SIM_ENABLED
|
||||
|
||||
#include "RPM_Backend.h"
|
||||
|
Loading…
Reference in New Issue
Block a user