mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-21 15:25:29 +03:00
Changed limits for feature settings
This commit is contained in:
parent
dab9f95c69
commit
1b44bd569c
2 changed files with 2 additions and 2 deletions
|
@ -2271,7 +2271,7 @@ groups:
|
||||||
default_value: "0"
|
default_value: "0"
|
||||||
field: fw.pitch_to_throttle_thresh
|
field: fw.pitch_to_throttle_thresh
|
||||||
min: 0
|
min: 0
|
||||||
max: 100
|
max: 900
|
||||||
- name: nav_fw_loiter_radius
|
- name: nav_fw_loiter_radius
|
||||||
description: "PosHold radius. 3000 to 7500 is a good value (30-75m) [cm]"
|
description: "PosHold radius. 3000 to 7500 is a good value (30-75m) [cm]"
|
||||||
default_value: "5000"
|
default_value: "5000"
|
||||||
|
|
|
@ -76,7 +76,7 @@ static int8_t loiterDirYaw = 1;
|
||||||
static float getSmoothnessCutoffFreq(float baseFreq)
|
static float getSmoothnessCutoffFreq(float baseFreq)
|
||||||
{
|
{
|
||||||
uint16_t smoothness = 10 - navConfig()->fw.control_smoothness;
|
uint16_t smoothness = 10 - navConfig()->fw.control_smoothness;
|
||||||
return 0.001f * baseFreq * (float)(smoothness*smoothness*smoothness) + 0.1f;
|
return 0.001f * baseFreq * (float)(smoothness*smoothness*smoothness) + 0.01f;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Calculates the cutoff frequency for smoothing out pitchToThrottleCorrection
|
// Calculates the cutoff frequency for smoothing out pitchToThrottleCorrection
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue