mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-25 17:23:56 -04:00
AP_RCTelemetry: add and use AP_RCTelemetry_config.h
This commit is contained in:
parent
35e3dcd83b
commit
6ebd73f144
@ -14,20 +14,11 @@
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <AP_HAL/AP_HAL_Boards.h>
|
||||
#include <AP_Frsky_Telem/AP_Frsky_config.h>
|
||||
#include <AP_OSD/AP_OSD.h>
|
||||
|
||||
#ifndef HAL_CRSF_TELEM_ENABLED
|
||||
#define HAL_CRSF_TELEM_ENABLED AP_FRSKY_SPORT_PASSTHROUGH_ENABLED
|
||||
#endif
|
||||
|
||||
#ifndef HAL_CRSF_TELEM_TEXT_SELECTION_ENABLED
|
||||
#define HAL_CRSF_TELEM_TEXT_SELECTION_ENABLED OSD_ENABLED && OSD_PARAM_ENABLED && HAL_CRSF_TELEM_ENABLED && BOARD_FLASH_SIZE > 1024
|
||||
#endif
|
||||
#include "AP_RCTelemetry_config.h"
|
||||
|
||||
#if HAL_CRSF_TELEM_ENABLED
|
||||
|
||||
#include <AP_OSD/AP_OSD.h>
|
||||
#include <AP_RCProtocol/AP_RCProtocol_CRSF.h>
|
||||
#include "AP_RCTelemetry.h"
|
||||
#include <AP_HAL/utility/sparse-endian.h>
|
||||
|
13
libraries/AP_RCTelemetry/AP_RCTelemetry_config.h
Normal file
13
libraries/AP_RCTelemetry/AP_RCTelemetry_config.h
Normal file
@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
#include <AP_HAL/AP_HAL_Boards.h>
|
||||
#include <AP_Frsky_Telem/AP_Frsky_config.h>
|
||||
#include <AP_OSD/AP_OSD_config.h>
|
||||
|
||||
#ifndef HAL_CRSF_TELEM_ENABLED
|
||||
#define HAL_CRSF_TELEM_ENABLED AP_FRSKY_SPORT_PASSTHROUGH_ENABLED
|
||||
#endif
|
||||
|
||||
#ifndef HAL_CRSF_TELEM_TEXT_SELECTION_ENABLED
|
||||
#define HAL_CRSF_TELEM_TEXT_SELECTION_ENABLED OSD_ENABLED && OSD_PARAM_ENABLED && HAL_CRSF_TELEM_ENABLED && BOARD_FLASH_SIZE > 1024
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user