mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-13 11:29:53 +03:00
Init
This commit is contained in:
parent
939f5af04b
commit
f24ccfc637
96 changed files with 16438 additions and 8058 deletions
|
@ -39,44 +39,48 @@ helper.defaultsDialog = (function () {
|
|||
value: "DSHOT300"
|
||||
},
|
||||
/*
|
||||
Ez Tune setup
|
||||
Filtering
|
||||
*/
|
||||
{
|
||||
key: "ez_enabled",
|
||||
value: "ON"
|
||||
},
|
||||
{
|
||||
key: "ez_filter_hz",
|
||||
key: "gyro_main_lpf_hz",
|
||||
value: 90
|
||||
},
|
||||
{
|
||||
key: "ez_axis_ratio",
|
||||
value: 116
|
||||
key: "gyro_main_lpf_type",
|
||||
value: "PT1"
|
||||
},
|
||||
{
|
||||
key: "ez_response",
|
||||
value: 71
|
||||
key: "dterm_lpf_hz",
|
||||
value: 85
|
||||
},
|
||||
{
|
||||
key: "ez_damping",
|
||||
value: 103
|
||||
key: "dterm_lpf_type",
|
||||
value: "PT3"
|
||||
},
|
||||
{
|
||||
key: "ez_stability",
|
||||
value: 105
|
||||
key: "dynamic_gyro_notch_enabled",
|
||||
value: "ON"
|
||||
},
|
||||
{
|
||||
key: "ez_aggressiveness",
|
||||
value: 100
|
||||
key: "dynamic_gyro_notch_q",
|
||||
value: 250
|
||||
},
|
||||
{
|
||||
key: "ez_rate",
|
||||
value: 134
|
||||
key: "dynamic_gyro_notch_min_hz",
|
||||
value: 70
|
||||
},
|
||||
{
|
||||
key: "ez_expo",
|
||||
value: 118
|
||||
key: "setpoint_kalman_enabled",
|
||||
value: "ON"
|
||||
},
|
||||
{
|
||||
key: "setpoint_kalman_q",
|
||||
value: 200
|
||||
},
|
||||
{
|
||||
key: "smith_predictor_delay", // Enable Smith Predictor
|
||||
value: 1.5
|
||||
},
|
||||
/*
|
||||
Mechanics
|
||||
*/
|
||||
|
@ -108,6 +112,64 @@ 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: 32
|
||||
},
|
||||
{
|
||||
key: "mc_i_pitch",
|
||||
value: 90
|
||||
},
|
||||
{
|
||||
key: "mc_d_pitch",
|
||||
value: 25
|
||||
},
|
||||
{
|
||||
key: "mc_p_roll",
|
||||
value: 28
|
||||
},
|
||||
{
|
||||
key: "mc_i_roll",
|
||||
value: 80
|
||||
},
|
||||
{
|
||||
key: "mc_d_roll",
|
||||
value: 23
|
||||
},
|
||||
{
|
||||
key: "mc_p_yaw",
|
||||
value: 30
|
||||
},
|
||||
{
|
||||
key: "mc_i_yaw",
|
||||
value: 80
|
||||
},
|
||||
/*
|
||||
* TPA
|
||||
*/
|
||||
|
@ -130,6 +192,11 @@ helper.defaultsDialog = (function () {
|
|||
{
|
||||
key: "failsafe_procedure",
|
||||
value: "DROP"
|
||||
},
|
||||
// Ez Tune
|
||||
{
|
||||
key: "ez_filter_hz",
|
||||
value: 90
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -160,43 +227,15 @@ helper.defaultsDialog = (function () {
|
|||
value: "DSHOT300"
|
||||
},
|
||||
/*
|
||||
Ez Tune setup
|
||||
Filtering
|
||||
*/
|
||||
{
|
||||
key: "ez_enabled",
|
||||
value: "ON"
|
||||
},
|
||||
{
|
||||
key: "ez_filter_hz",
|
||||
key: "gyro_main_lpf_hz",
|
||||
value: 110
|
||||
},
|
||||
{
|
||||
key: "ez_axis_ratio",
|
||||
value: 110
|
||||
},
|
||||
{
|
||||
key: "ez_response",
|
||||
value: 92
|
||||
},
|
||||
{
|
||||
key: "ez_damping",
|
||||
value: 108
|
||||
},
|
||||
{
|
||||
key: "ez_stability",
|
||||
value: 110
|
||||
},
|
||||
{
|
||||
key: "ez_aggressiveness",
|
||||
value: 80
|
||||
},
|
||||
{
|
||||
key: "ez_rate",
|
||||
value: 134
|
||||
},
|
||||
{
|
||||
key: "ez_expo",
|
||||
value: 118
|
||||
key: "gyro_main_lpf_type",
|
||||
value: "PT1"
|
||||
},
|
||||
/*
|
||||
Dynamic gyro LPF
|
||||
|
@ -218,6 +257,41 @@ helper.defaultsDialog = (function () {
|
|||
value: 3
|
||||
},
|
||||
/*
|
||||
D-term
|
||||
*/
|
||||
{
|
||||
key: "dterm_lpf_hz",
|
||||
value: 110
|
||||
},
|
||||
{
|
||||
key: "dterm_lpf_type",
|
||||
value: "PT3"
|
||||
},
|
||||
{
|
||||
key: "dynamic_gyro_notch_enabled",
|
||||
value: "ON"
|
||||
},
|
||||
{
|
||||
key: "dynamic_gyro_notch_q",
|
||||
value: 250
|
||||
},
|
||||
{
|
||||
key: "dynamic_gyro_notch_min_hz",
|
||||
value: 100
|
||||
},
|
||||
{
|
||||
key: "setpoint_kalman_enabled",
|
||||
value: "ON"
|
||||
},
|
||||
{
|
||||
key: "setpoint_kalman_q",
|
||||
value: 200
|
||||
},
|
||||
{
|
||||
key: "smith_predictor_delay", // Enable Smith Predictor
|
||||
value: 1.5
|
||||
},
|
||||
/*
|
||||
Mechanics
|
||||
*/
|
||||
{
|
||||
|
@ -248,6 +322,64 @@ 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
|
||||
*/
|
||||
|
@ -270,6 +402,11 @@ helper.defaultsDialog = (function () {
|
|||
{
|
||||
key: "failsafe_procedure",
|
||||
value: "DROP"
|
||||
},
|
||||
// Ez Tune
|
||||
{
|
||||
key: "ez_filter_hz",
|
||||
value: 110
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -300,44 +437,52 @@ helper.defaultsDialog = (function () {
|
|||
value: "DSHOT300"
|
||||
},
|
||||
/*
|
||||
Ez Tune setup
|
||||
Filtering
|
||||
*/
|
||||
{
|
||||
key: "ez_enabled",
|
||||
value: "ON"
|
||||
},
|
||||
{
|
||||
key: "ez_filter_hz",
|
||||
key: "gyro_main_lpf_hz",
|
||||
value: 90
|
||||
},
|
||||
{
|
||||
key: "ez_axis_ratio",
|
||||
value: 110
|
||||
key: "gyro_main_lpf_type",
|
||||
value: "PT1"
|
||||
},
|
||||
{
|
||||
key: "ez_response",
|
||||
value: 101
|
||||
key: "dterm_lpf_hz",
|
||||
value: 80
|
||||
},
|
||||
{
|
||||
key: "ez_damping",
|
||||
value: 115
|
||||
key: "dterm_lpf_type",
|
||||
value: "PT3"
|
||||
},
|
||||
{
|
||||
key: "ez_stability",
|
||||
value: 100
|
||||
key: "dynamic_gyro_notch_enabled",
|
||||
value: "ON"
|
||||
},
|
||||
{
|
||||
key: "ez_aggressiveness",
|
||||
value: 100
|
||||
key: "dynamic_gyro_notch_mode",
|
||||
value: "3D"
|
||||
},
|
||||
{
|
||||
key: "ez_rate",
|
||||
value: 134
|
||||
key: "dynamic_gyro_notch_q",
|
||||
value: 250
|
||||
},
|
||||
{
|
||||
key: "ez_expo",
|
||||
value: 118
|
||||
},
|
||||
key: "dynamic_gyro_notch_min_hz",
|
||||
value: 60
|
||||
},
|
||||
{
|
||||
key: "setpoint_kalman_enabled",
|
||||
value: "ON"
|
||||
},
|
||||
{
|
||||
key: "setpoint_kalman_q",
|
||||
value: 200
|
||||
},
|
||||
{
|
||||
key: "smith_predictor_delay", // Enable Smith Predictor
|
||||
value: 1.5
|
||||
},
|
||||
/*
|
||||
Mechanics
|
||||
*/
|
||||
|
@ -369,6 +514,64 @@ 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: 44
|
||||
},
|
||||
{
|
||||
key: "mc_i_pitch",
|
||||
value: 85
|
||||
},
|
||||
{
|
||||
key: "mc_d_pitch",
|
||||
value: 28
|
||||
},
|
||||
{
|
||||
key: "mc_p_roll",
|
||||
value: 40
|
||||
},
|
||||
{
|
||||
key: "mc_i_roll",
|
||||
value: 75
|
||||
},
|
||||
{
|
||||
key: "mc_d_roll",
|
||||
value: 26
|
||||
},
|
||||
{
|
||||
key: "mc_p_yaw",
|
||||
value: 40
|
||||
},
|
||||
{
|
||||
key: "mc_i_yaw",
|
||||
value: 80
|
||||
},
|
||||
/*
|
||||
* TPA
|
||||
*/
|
||||
|
@ -391,6 +594,11 @@ helper.defaultsDialog = (function () {
|
|||
{
|
||||
key: "failsafe_procedure",
|
||||
value: "DROP"
|
||||
},
|
||||
// Ez Tune
|
||||
{
|
||||
key: "ez_filter_hz",
|
||||
value: 90
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -924,7 +1132,7 @@ helper.defaultsDialog = (function () {
|
|||
privateScope.finalize = function (selectedDefaultPreset) {
|
||||
mspHelper.saveToEeprom(function () {
|
||||
//noinspection JSUnresolvedVariable
|
||||
GUI.log(chrome.i18n.getMessage('configurationEepromSaved'));
|
||||
GUI.log(localization.getMessage('configurationEepromSaved'));
|
||||
|
||||
if (selectedDefaultPreset.reboot) {
|
||||
GUI.tab_switch_cleanup(function () {
|
||||
|
@ -933,7 +1141,7 @@ helper.defaultsDialog = (function () {
|
|||
if (typeof savingDefaultsModal !== 'undefined') {
|
||||
savingDefaultsModal.close();
|
||||
}
|
||||
GUI.log(chrome.i18n.getMessage('deviceRebooting'));
|
||||
GUI.log(localization.getMessage('deviceRebooting'));
|
||||
GUI.handleReconnect();
|
||||
});
|
||||
});
|
||||
|
@ -958,9 +1166,6 @@ helper.defaultsDialog = (function () {
|
|||
miscSettings.push(input);
|
||||
}
|
||||
});
|
||||
|
||||
//Save analytics
|
||||
googleAnalytics.sendEvent('Setting', 'Defaults', selectedDefaultPreset.title);
|
||||
|
||||
var settingsChainer = MSPChainerClass();
|
||||
var chain = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue