|
|
|
@ -11,10 +11,10 @@ presets.elementHelper = function (group, field, value) {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
presets.defaultValues = {
|
|
|
|
|
INAV_PID_CONFIG: {"asynchronousMode": "0", "accelerometerTaskFrequency": 500, "attitudeTaskFrequency": 250, "magHoldRateLimit": 90, "magHoldErrorLpfFrequency": 2, "yawJumpPreventionLimit": 200, "gyroscopeLpf": "3", "accSoftLpfHz": 15},
|
|
|
|
|
RC_tuning: {"RC_RATE": 1, "RC_EXPO": 0.7, "roll_pitch_rate": 0, "roll_rate": 200, "pitch_rate": 200, "yaw_rate": 200, "dynamic_THR_PID": 0, "throttle_MID": 0.5, "throttle_EXPO": 0, "dynamic_THR_breakpoint": 1500, "RC_YAW_EXPO": 0.2},
|
|
|
|
|
PID_ADVANCED: {"rollPitchItermIgnoreRate": 200, "yawItermIgnoreRate": 50, "yawPLimit": 300, "axisAccelerationLimitRollPitch": 0, "axisAccelerationLimitYaw": 1000},
|
|
|
|
|
FILTER_CONFIG: {"gyroSoftLpfHz": 60, "dtermLpfHz": 40, "yawLpfHz": 30, "gyroNotchHz1": 0, "gyroNotchCutoff1": 0, "dtermNotchHz": 0, "dtermNotchCutoff": 0, "gyroNotchHz2": 0, "gyroNotchCutoff2": 0, "accNotchHz": 0, "accNotchCutoff": 0, "gyroStage2LowpassHz": 0}
|
|
|
|
|
INAV_PID_CONFIG: { "asynchronousMode": "0", "accelerometerTaskFrequency": 500, "attitudeTaskFrequency": 250, "magHoldRateLimit": 90, "magHoldErrorLpfFrequency": 2, "yawJumpPreventionLimit": 200, "gyroscopeLpf": "3", "accSoftLpfHz": 15 },
|
|
|
|
|
RC_tuning: { "RC_RATE": 1, "RC_EXPO": 0.7, "roll_pitch_rate": 0, "roll_rate": 200, "pitch_rate": 200, "yaw_rate": 200, "dynamic_THR_PID": 0, "throttle_MID": 0.5, "throttle_EXPO": 0, "dynamic_THR_breakpoint": 1500, "RC_YAW_EXPO": 0.2 },
|
|
|
|
|
PID_ADVANCED: { "rollPitchItermIgnoreRate": 200, "yawItermIgnoreRate": 50, "yawPLimit": 300, "axisAccelerationLimitRollPitch": 0, "axisAccelerationLimitYaw": 1000 },
|
|
|
|
|
FILTER_CONFIG: { "gyroSoftLpfHz": 60, "dtermLpfHz": 40, "yawLpfHz": 30, "gyroNotchHz1": 0, "gyroNotchCutoff1": 0, "dtermNotchHz": 0, "dtermNotchCutoff": 0, "gyroNotchHz2": 0, "gyroNotchCutoff2": 0, "accNotchHz": 0, "accNotchCutoff": 0, "gyroStage2LowpassHz": 0 }
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
presets.settings = {
|
|
|
|
@ -26,7 +26,7 @@ presets.settings = {
|
|
|
|
|
},
|
|
|
|
|
MR: {
|
|
|
|
|
},
|
|
|
|
|
get: function(mixerType) {
|
|
|
|
|
get: function (mixerType) {
|
|
|
|
|
var settings = {};
|
|
|
|
|
$.extend(settings, presets.settings.COMMON);
|
|
|
|
|
if (mixerType == 'multirotor') {
|
|
|
|
@ -968,7 +968,7 @@ presets.presets = [
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: "dterm_lpf_hz",
|
|
|
|
|
value: 40
|
|
|
|
|
value: 10
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: "d_boost_factor",
|
|
|
|
@ -1028,7 +1028,7 @@ presets.presets = [
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: "nav_fw_pos_xy_p",
|
|
|
|
|
value: 50
|
|
|
|
|
value: 60
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: "fw_turn_assist_pitch_gain",
|
|
|
|
@ -1052,7 +1052,7 @@ presets.presets = [
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: "fw_ff_pitch",
|
|
|
|
|
value: 60
|
|
|
|
|
value: 80
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: "fw_p_roll",
|
|
|
|
@ -1080,7 +1080,11 @@ presets.presets = [
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: "imu_acc_ignore_rate",
|
|
|
|
|
value: 10
|
|
|
|
|
value: 9
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: "imu_acc_ignore_slope",
|
|
|
|
|
value: 5
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: "airmode_type",
|
|
|
|
@ -1138,7 +1142,7 @@ presets.presets = [
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: "dterm_lpf_hz",
|
|
|
|
|
value: 40
|
|
|
|
|
value: 10
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: "d_boost_factor",
|
|
|
|
@ -1198,7 +1202,7 @@ presets.presets = [
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: "nav_fw_pos_xy_p",
|
|
|
|
|
value: 50
|
|
|
|
|
value: 60
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: "fw_turn_assist_pitch_gain",
|
|
|
|
@ -1237,21 +1241,13 @@ presets.presets = [
|
|
|
|
|
value: 35
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: "fw_p_yaw",
|
|
|
|
|
value: 20
|
|
|
|
|
key: "imu_acc_ignore_rate",
|
|
|
|
|
value: 9
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: "fw_i_yaw",
|
|
|
|
|
key: "imu_acc_ignore_slope",
|
|
|
|
|
value: 5
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: "fw_ff_yaw",
|
|
|
|
|
value: 100
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: "imu_acc_ignore_rate",
|
|
|
|
|
value: 10
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: "airmode_type",
|
|
|
|
|
value: "STICK_CENTER_ONCE"
|
|
|
|
|