Browse Source

AP_GyroFFT: convert APM_BUILD_COPTER_OR_HELI() to APM_BUILD_COPTER_OR_HELI

gps-1.3.1
Andy Piper 3 years ago committed by Andrew Tridgell
parent
commit
71c0d9479a
  1. 4
      libraries/AP_GyroFFT/AP_GyroFFT.cpp

4
libraries/AP_GyroFFT/AP_GyroFFT.cpp

@ -683,7 +683,7 @@ float AP_GyroFFT::get_weighted_noise_center_freq_hz() const @@ -683,7 +683,7 @@ float AP_GyroFFT::get_weighted_noise_center_freq_hz() const
}
if (!_health) {
#if APM_BUILD_COPTER_OR_HELI() || 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, @@ -715,7 +715,7 @@ uint8_t AP_GyroFFT::get_weighted_noise_center_frequencies_hz(uint8_t num_freqs,
}
if (!_health) {
#if APM_BUILD_COPTER_OR_HELI() || 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

Loading…
Cancel
Save