-
Notifications
You must be signed in to change notification settings - Fork 15
/
ALIENFLIGHTNGF7-upgrade.cf
59 lines (46 loc) · 1.11 KB
/
ALIENFLIGHTNGF7-upgrade.cf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# To enable RPM filtering, first apply these settings
# timer and DMA changes for this target. These will ensure that your
# quad can receive telemetry frames on the motor signal lines.
timer a08 0
timer c06 1
timer c07 1
timer b14 1
#timer b00 1
timer a00 0
timer c08 1
timer a01 0
timer c09 1
timer b01 1
timer b15 1
timer b08 0
timer b09 0
dma adc 1 0
dma pin a08 0
dma pin c06 1
dma pin c07 1
dma pin b14 0
#dma pin b00 0
dma pin a00 0
dma pin c08 1
dma pin a01 0
dma pin c09 0
dma pin b01 0
dma pin b15 0
dma pin b08 0
dma pin b09 0
# set looptime to 4k to have enough computational time
set gyro_sync_denom = 2
set pid_process_denom = 1
# Start with dshot 300 which is most robust
set motor_pwm_protocol=DSHOT300
# basic settings required to enable rpm filtering:
set scheduler_optimize_rate=on
set dshot_burst=off
set dshot_bidir=on
# enable debugging for noise assessment
set debug_mode=gyro_scaled
# reconfigure dynamic notch filter to focus on narrow frame resonances
# since motor noise will already be eliminated by the rpm filter.
set dyn_notch_range = medium
set dyn_notch_width_percent = 0
set dyn_notch_q = 250