Skip to content

Commit

Permalink
sdft: record all peaks
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleiner committed Aug 4, 2024
1 parent 27f6d7e commit 83d0796
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/flight/sixaxis.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,7 @@ void sixaxis_read() {

if (profile.filter.gyro_dynamic_notch_enable) {
for (uint32_t p = 0; p < SDFT_PEAKS; p++) {
if (p == 1) {
blackbox_set_debug(i, gyro_sdft[i].notch_hz[p]);
}
blackbox_set_debug(i * SDFT_PEAKS + p, gyro_sdft[i].notch_hz[p]);
state.gyro.axis[i] = filter_biquad_notch_step(&notch_filter[i][p], &notch_filter_state[i][p], state.gyro.axis[i]);
}
}
Expand Down

0 comments on commit 83d0796

Please sign in to comment.