Skip to content

Commit

Permalink
Enable Dynamic Notch filter by default
Browse files Browse the repository at this point in the history
  • Loading branch information
pmattila committed Oct 1, 2024
1 parent 3d1e4cc commit 014bac5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/pg/dyn_notch.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
PG_REGISTER_WITH_RESET_TEMPLATE(dynNotchConfig_t, dynNotchConfig, PG_DYN_NOTCH_CONFIG, 0);

PG_RESET_TEMPLATE(dynNotchConfig_t, dynNotchConfig,
.dyn_notch_count = 4,
.dyn_notch_q = 20,
.dyn_notch_min_hz = 25,
.dyn_notch_max_hz = 245,
.dyn_notch_count = 6,
.dyn_notch_q = 25,
.dyn_notch_min_hz = 20,
.dyn_notch_max_hz = 240,
);

#endif // USE_DYN_NOTCH_FILTER
12 changes: 12 additions & 0 deletions src/main/target/STM32_UNIFIED/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@
#define CURRENT_TASK_FREQ_HZ 100
#define ESC_SENSOR_TASK_FREQ_HZ 100

#define DEFAULT_FEATURES (FEATURE_DYN_NOTCH)


/*
* STM32F411
Expand Down Expand Up @@ -101,6 +103,8 @@
#define CURRENT_TASK_FREQ_HZ 100
#define ESC_SENSOR_TASK_FREQ_HZ 100

#define DEFAULT_FEATURES (0)


/*
* STM32F7x2
Expand Down Expand Up @@ -142,6 +146,8 @@
#define CURRENT_TASK_FREQ_HZ 200
#define ESC_SENSOR_TASK_FREQ_HZ 200

#define DEFAULT_FEATURES (FEATURE_DYN_NOTCH)


/*
* STM32F745
Expand Down Expand Up @@ -187,6 +193,8 @@
#define CURRENT_TASK_FREQ_HZ 200
#define ESC_SENSOR_TASK_FREQ_HZ 200

#define DEFAULT_FEATURES (FEATURE_DYN_NOTCH)


/*
* STM32G47x
Expand Down Expand Up @@ -230,6 +238,8 @@
#define CURRENT_TASK_FREQ_HZ 100
#define ESC_SENSOR_TASK_FREQ_HZ 100

#define DEFAULT_FEATURES (FEATURE_DYN_NOTCH)


/*
* STM32H743
Expand Down Expand Up @@ -281,6 +291,8 @@

#define USE_LEDSTRIP_CACHE_MGMT

#define DEFAULT_FEATURES (FEATURE_DYN_NOTCH)


/*
* UNKNOWN target
Expand Down

0 comments on commit 014bac5

Please sign in to comment.