mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
AP_BoardConfig: added param object for AP_Radio
This commit is contained in:
parent
a8af1974d2
commit
3afaf81ccc
@ -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
|
||||
};
|
||||
|
@ -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
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user