AP_BoardConfig: added param object for AP_Radio

This commit is contained in:
Andrew Tridgell 2018-01-05 19:58:17 +11:00
parent a8af1974d2
commit 3afaf81ccc
2 changed files with 14 additions and 1 deletions

View File

@ -181,7 +181,11 @@ const AP_Param::GroupInfo AP_BoardConfig::var_info[] = {
#endif
#endif
// ID number 11 reserved for AP_Radio (pending PR)
#ifdef HAL_RCINPUT_WITH_AP_RADIO
// @Group: RADIO
// @Path: ../AP_Radio/AP_Radio.cpp
AP_SUBGROUPINFO(_radio, "RADIO", 11, AP_BoardConfig, AP_Radio),
#endif
AP_GROUPEND
};

View File

@ -24,6 +24,10 @@
#define AP_FEATURE_SBUS_OUT 0
#endif
#ifdef HAL_RCINPUT_WITH_AP_RADIO
#include <AP_Radio/AP_Radio.h>
#endif
extern "C" typedef int (*main_fn_t)(int argc, char **);
class AP_BoardConfig {
@ -163,4 +167,9 @@ private:
// target temperarure for IMU in Celsius, or -1 to disable
AP_Int8 _imu_target_temperature;
#ifdef HAL_RCINPUT_WITH_AP_RADIO
// direct attached radio
AP_Radio _radio;
#endif
};