SRV_Channel: allow BLHeli build with AP_Periph

This commit is contained in:
Andrew Tridgell 2021-12-07 13:46:32 +11:00 committed by Tom Pittenger
parent 778de59fff
commit c6bde6745a
2 changed files with 4 additions and 3 deletions

View File

@ -561,6 +561,7 @@ private:
// support for Robotis servo protocol
AP_RobotisServo robotis;
static AP_RobotisServo *robotis_ptr;
#endif // HAL_BUILD_AP_PERIPH
#if HAL_SUPPORT_RCOUT_SERIAL
// support for BLHeli protocol
@ -568,8 +569,6 @@ private:
static AP_BLHeli *blheli_ptr;
#endif
#endif // HAL_BUILD_AP_PERIPH
#if AP_FETTEC_ONEWIRE_ENABLED
AP_FETtecOneWire fetteconwire;
static AP_FETtecOneWire *fetteconwire_ptr;

View File

@ -191,6 +191,7 @@ const AP_Param::GroupInfo SRV_Channels::var_info[] = {
// @Group: _SBUS_
// @Path: ../AP_SBusOut/AP_SBusOut.cpp
AP_SUBGROUPINFO(sbus, "_SBUS_", 20, SRV_Channels, AP_SBusOut),
#endif // HAL_BUILD_AP_PERIPH
#if HAL_SUPPORT_RCOUT_SERIAL
// @Group: _BLH_
@ -198,6 +199,7 @@ const AP_Param::GroupInfo SRV_Channels::var_info[] = {
AP_SUBGROUPINFO(blheli, "_BLH_", 21, SRV_Channels, AP_BLHeli),
#endif
#ifndef HAL_BUILD_AP_PERIPH
// @Group: _ROB_
// @Path: ../AP_RobotisServo/AP_RobotisServo.cpp
AP_SUBGROUPINFO(robotis, "_ROB_", 22, SRV_Channels, AP_RobotisServo),