2022-07-15 08:53:41 -03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AP_HAL/AP_HAL_Boards.h>
|
|
|
|
|
|
|
|
#include <AP_EFI/AP_EFI_config.h>
|
2023-05-13 07:11:03 -03:00
|
|
|
#include <AP_Generator/AP_Generator_config.h>
|
2023-08-02 18:45:13 -03:00
|
|
|
#include <AP_InertialSensor/AP_InertialSensor_config.h>
|
2023-08-14 23:16:48 -03:00
|
|
|
#include <AP_ESC_Telem/AP_ESC_Telem_config.h>
|
2022-07-15 08:53:41 -03:00
|
|
|
|
|
|
|
#ifndef AP_RPM_ENABLED
|
|
|
|
#define AP_RPM_ENABLED 1
|
|
|
|
#endif
|
|
|
|
|
2023-08-02 18:45:13 -03:00
|
|
|
#ifndef RPM_MAX_INSTANCES
|
|
|
|
#define RPM_MAX_INSTANCES 2
|
|
|
|
#endif
|
|
|
|
|
2022-07-15 08:53:41 -03:00
|
|
|
#ifndef AP_RPM_BACKEND_DEFAULT_ENABLED
|
|
|
|
#define AP_RPM_BACKEND_DEFAULT_ENABLED AP_RPM_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_RPM_EFI_ENABLED
|
|
|
|
#define AP_RPM_EFI_ENABLED AP_RPM_BACKEND_DEFAULT_ENABLED && HAL_EFI_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_RPM_ESC_TELEM_ENABLED
|
2023-08-12 09:04:09 -03:00
|
|
|
#define AP_RPM_ESC_TELEM_ENABLED AP_RPM_BACKEND_DEFAULT_ENABLED && HAL_WITH_ESC_TELEM
|
2022-07-15 08:53:41 -03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_RPM_HARMONICNOTCH_ENABLED
|
2024-02-12 20:26:07 -04:00
|
|
|
#define AP_RPM_HARMONICNOTCH_ENABLED AP_RPM_BACKEND_DEFAULT_ENABLED && AP_INERTIALSENSOR_HARMONICNOTCH_ENABLED
|
2022-07-15 08:53:41 -03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_RPM_PIN_ENABLED
|
|
|
|
#define AP_RPM_PIN_ENABLED AP_RPM_BACKEND_DEFAULT_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_RPM_SIM_ENABLED
|
|
|
|
#define AP_RPM_SIM_ENABLED AP_RPM_BACKEND_DEFAULT_ENABLED && AP_SIM_ENABLED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef AP_RPM_GENERATOR_ENABLED
|
|
|
|
#define AP_RPM_GENERATOR_ENABLED AP_RPM_BACKEND_DEFAULT_ENABLED && HAL_GENERATOR_ENABLED
|
|
|
|
#endif
|
2023-08-14 23:16:48 -03:00
|
|
|
|
|
|
|
#ifndef AP_RPM_ESC_TELEM_OUTBOUND_ENABLED
|
|
|
|
#define AP_RPM_ESC_TELEM_OUTBOUND_ENABLED AP_RPM_BACKEND_DEFAULT_ENABLED && HAL_WITH_ESC_TELEM
|
|
|
|
#endif
|