Skip to content

Commit

Permalink
rx: round filter cutoff and lower slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleiner committed Oct 10, 2023
1 parent 4c0c790 commit 3121cfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rx/rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ void rx_update() {
if (rx_filter_delta > RX_FITER_SAMPLE_TIME) {
const float sample_hz = (float)rx_filter_counter / ((float)rx_filter_delta / 1000.0f);

state.rx_filter_hz = sample_hz * 0.5;
state.rx_filter_hz = lrintf(sample_hz * 0.45f);
rx_filter_start = time_millis();
rx_filter_counter = 0;
}
Expand Down

0 comments on commit 3121cfd

Please sign in to comment.