Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert 5" preset to EZ Tune #1956

Merged
merged 1 commit into from
Feb 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
130 changes: 30 additions & 100 deletions js/defaults_dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,70 +160,63 @@ helper.defaultsDialog = (function () {
value: "DSHOT300"
},
/*
Filtering
Ez Tune setup
*/
{
key: "gyro_main_lpf_hz",
value: 110
},
{
key: "gyro_main_lpf_type",
value: "PT1"
key: "ez_enabled",
value: "ON"
},
/*
Dynamic gyro LPF
*/
{
key: "gyro_use_dyn_lpf",
value: "ON"
key: "ez_filter_hz",
value: 110
},
{
key: "gyro_dyn_lpf_min_hz",
value: 85
key: "ez_axis_ratio",
value: 110
},
{
key: "gyro_dyn_lpf_max_hz",
value: 300
key: "ez_response",
value: 92
},
{
key: "gyro_dyn_lpf_curve_expo",
value: 3
key: "ez_damping",
value: 108
},
/*
D-term
*/
{
key: "dterm_lpf_hz",
key: "ez_stability",
value: 110
},
{
key: "dterm_lpf_type",
value: "PT3"
key: "ez_aggressiveness",
value: 80
},
{
key: "dynamic_gyro_notch_enabled",
value: "ON"
key: "ez_rate",
value: 134
},
{
key: "dynamic_gyro_notch_q",
value: 250
key: "ez_expo",
value: 118
},
/*
Dynamic gyro LPF
*/
{
key: "dynamic_gyro_notch_min_hz",
value: 100
key: "gyro_use_dyn_lpf",
value: "ON"
},
{
key: "setpoint_kalman_enabled",
value: "ON"
key: "gyro_dyn_lpf_min_hz",
value: 85
},
{
key: "setpoint_kalman_q",
value: 200
key: "gyro_dyn_lpf_max_hz",
value: 300
},
{
key: "smith_predictor_delay", // Enable Smith Predictor
value: 1.5
},
key: "gyro_dyn_lpf_curve_expo",
value: 3
},
/*
Mechanics
*/
Expand Down Expand Up @@ -255,64 +248,6 @@ helper.defaultsDialog = (function () {
key: "antigravity_accelerator",
value: 5
},
/*
Rates
*/
{
key: "rc_yaw_expo",
value: 75
},
{
key: "rc_expo",
value: 75
},
{
key: "roll_rate",
value: 70
},
{
key: "pitch_rate",
value: 70
},
{
key: "yaw_rate",
value: 60
},
/*
PIDs
*/
{
key: "mc_p_pitch",
value: 40
},
{
key: "mc_i_pitch",
value: 90
},
{
key: "mc_d_pitch",
value: 27
},
{
key: "mc_p_roll",
value: 36
},
{
key: "mc_i_roll",
value: 80
},
{
key: "mc_d_roll",
value: 25
},
{
key: "mc_p_yaw",
value: 35
},
{
key: "mc_i_yaw",
value: 80
},
/*
* TPA
*/
Expand All @@ -335,11 +270,6 @@ helper.defaultsDialog = (function () {
{
key: "failsafe_procedure",
value: "DROP"
},
// Ez Tune
{
key: "ez_filter_hz",
value: 110
}
]
},
Expand Down