AP_BoardConfig: move handling of AP_Radio RC input down into AP_RCProtocol

This commit is contained in:
Peter Barker 2024-05-01 13:23:46 +10:00 committed by Andrew Tridgell
parent c91fe8a44f
commit 6d9a75b5ec
2 changed files with 4 additions and 3 deletions

View File

@ -225,7 +225,7 @@ const AP_Param::GroupInfo AP_BoardConfig::var_info[] = {
AP_GROUPINFO("IO_ENABLE", 10, AP_BoardConfig, state.io_enable, 1),
#endif
#if HAL_RCINPUT_WITH_AP_RADIO
#if AP_RADIO_ENABLED
// @Group: RADIO
// @Path: ../AP_Radio/AP_Radio.cpp
AP_SUBGROUPINFO(_radio, "RADIO", 11, AP_BoardConfig, AP_Radio),

View File

@ -5,8 +5,9 @@
#include <AP_Param/AP_Param.h>
#include <AP_RTC/AP_RTC.h>
#include <AC_PID/AC_PI.h>
#include <AP_Radio/AP_Radio_config.h>
#if HAL_RCINPUT_WITH_AP_RADIO
#if AP_RADIO_ENABLED
#include <AP_Radio/AP_Radio.h>
#endif
@ -292,7 +293,7 @@ private:
} heater;
#endif
#if HAL_RCINPUT_WITH_AP_RADIO
#if AP_RADIO_ENABLED
// direct attached radio
AP_Radio _radio;
#endif