AP_BLHeli: Add APM_BUILD_Heli

This commit is contained in:
Gone4Dirt 2021-09-28 09:52:58 +01:00 committed by Peter Barker
parent 1d02ac768d
commit a97cafbaad

View File

@ -58,7 +58,7 @@ const AP_Param::GroupInfo AP_BLHeli::var_info[] = {
// @User: Advanced // @User: Advanced
AP_GROUPINFO("MASK", 1, AP_BLHeli, channel_mask, 0), AP_GROUPINFO("MASK", 1, AP_BLHeli, channel_mask, 0),
#if APM_BUILD_TYPE(APM_BUILD_ArduCopter) || APM_BUILD_TYPE(APM_BUILD_ArduPlane) || APM_BUILD_TYPE(APM_BUILD_Rover) #if APM_BUILD_COPTER_OR_HELI() || APM_BUILD_TYPE(APM_BUILD_ArduPlane) || APM_BUILD_TYPE(APM_BUILD_Rover)
// @Param: AUTO // @Param: AUTO
// @DisplayName: BLHeli pass-thru auto-enable for multicopter motors // @DisplayName: BLHeli pass-thru auto-enable for multicopter motors
// @Description: If set to 1 this auto-enables BLHeli pass-thru support for all multicopter motors // @Description: If set to 1 this auto-enables BLHeli pass-thru support for all multicopter motors
@ -1355,7 +1355,7 @@ void AP_BLHeli::init(void)
digital_mask = mask; digital_mask = mask;
} }
#if APM_BUILD_TYPE(APM_BUILD_ArduCopter) || APM_BUILD_TYPE(APM_BUILD_ArduPlane) || APM_BUILD_TYPE(APM_BUILD_Rover) #if APM_BUILD_COPTER_OR_HELI() || APM_BUILD_TYPE(APM_BUILD_ArduPlane) || APM_BUILD_TYPE(APM_BUILD_Rover)
/* /*
plane and copter can use AP_Motors to get an automatic mask plane and copter can use AP_Motors to get an automatic mask
*/ */