Skip to content

Commit

Permalink
AP_InertialSensor: remove dynamic fifo mask
Browse files Browse the repository at this point in the history
  • Loading branch information
andyp1per committed Dec 19, 2024
1 parent 100dbec commit bd4e3a9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 0 additions & 4 deletions libraries/AP_InertialSensor/AP_InertialSensor_rate_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,3 @@
#ifndef AP_INERTIALSENSOR_FAST_SAMPLE_WINDOW_ENABLED
#define AP_INERTIALSENSOR_FAST_SAMPLE_WINDOW_ENABLED (AP_INERTIALSENSOR_ENABLED && HAL_INS_RATE_LOOP && AP_INERTIALSENSOR_HARMONICNOTCH_ENABLED && APM_BUILD_TYPE(APM_BUILD_ArduCopter))
#endif

#ifndef AP_INERTIALSENSOR_DYNAMIC_FIFO_MASK
#define AP_INERTIALSENSOR_DYNAMIC_FIFO_MASK 127
#endif
3 changes: 1 addition & 2 deletions libraries/AP_InertialSensor/FastRateBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ bool AP_InertialSensor::is_dynamic_fifo_enabled(uint8_t instance) const
if (!fast_rate_buffer_enabled || fast_rate_buffer == nullptr) {
return false;
}
return ((1U<<instance) & AP_INERTIALSENSOR_DYNAMIC_FIFO_MASK)
&& (_fast_sampling_mask & (1U<<instance)) != 0
return (_fast_sampling_mask & (1U<<instance)) != 0
&& fast_rate_buffer->use_rate_loop_gyro_samples();
}

Expand Down

0 comments on commit bd4e3a9

Please sign in to comment.