AP_RPM: added AP_RPM_config.h

This commit is contained in:
Andrew Tridgell 2022-10-02 09:54:33 +11:00
parent 9fd67b4754
commit 410213e41a
3 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,4 @@
#pragma once
#define AP_RPM_ENABLED 1

View File

@ -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"