AP_GyroFFT: Add APM_BUILD_Heli

This commit is contained in:
Gone4Dirt 2021-09-28 10:05:15 +01:00 committed by Peter Barker
parent 40f8407c1d
commit 79787d55cc

View File

@ -683,7 +683,7 @@ float AP_GyroFFT::get_weighted_noise_center_freq_hz() const
}
if (!_health) {
#if APM_BUILD_TYPE(APM_BUILD_ArduCopter) || APM_BUILD_TYPE(APM_BUILD_ArduPlane)
#if APM_BUILD_COPTER_OR_HELI() || APM_BUILD_TYPE(APM_BUILD_ArduPlane)
AP_Motors* motors = AP::motors();
if (motors != nullptr) {
// FFT is not healthy, fallback to throttle-based estimate
@ -715,7 +715,7 @@ uint8_t AP_GyroFFT::get_weighted_noise_center_frequencies_hz(uint8_t num_freqs,
}
if (!_health) {
#if APM_BUILD_TYPE(APM_BUILD_ArduCopter) || APM_BUILD_TYPE(APM_BUILD_ArduPlane)
#if APM_BUILD_COPTER_OR_HELI() || APM_BUILD_TYPE(APM_BUILD_ArduPlane)
AP_Motors* motors = AP::motors();
if (motors != nullptr) {
// FFT is not healthy, fallback to throttle-based estimate