1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-24 16:55:22 +03:00

Merge branch 'master' of https://github.com/iNavFlight/inav-configurator into submit-led-pwm

This commit is contained in:
Roman Lut 2023-10-26 17:43:55 +02:00
commit c4f7e11820
84 changed files with 28090 additions and 19111 deletions

View file

@ -64,7 +64,8 @@ var CONFIG,
SAFEHOMES,
BOARD_ALIGNMENT,
CURRENT_METER_CONFIG,
FEATURES;
FEATURES,
RATE_DYNAMICS;
var FC = {
restartRequired: false,
@ -117,6 +118,7 @@ var FC = {
i2cError: 0,
activeSensors: 0,
mode: [],
mixer_profile: 0,
profile: 0,
battery_profile: 0,
uid: [0, 0, 0],
@ -195,6 +197,7 @@ var FC = {
MIXER_CONFIG = {
yawMotorDirection: 0,
yawJumpPreventionLimit: 0,
motorStopOnLow: false,
platformType: -1,
hasFlaps: false,
appliedMixerPreset: -1,
@ -540,6 +543,27 @@ var FC = {
SETTINGS = {};
SAFEHOMES = new SafehomeCollection();
RATE_DYNAMICS = {
sensitivityCenter: null,
sensitivityEnd: null,
correctionCenter: null,
correctionEnd: null,
weightCenter: null,
weightEnd: null
};
EZ_TUNE = {
enabled: null,
filterHz: null,
axisRatio: null,
response: null,
damping: null,
stability: null,
aggressiveness: null,
rate: null,
expo: null
};
},
getOutputUsages: function() {
return {
@ -554,7 +578,6 @@ var FC = {
getFeatures: function () {
var features = [
{bit: 1, group: 'batteryVoltage', name: 'VBAT'},
{bit: 4, group: 'other', name: 'MOTOR_STOP'},
{bit: 6, group: 'other', name: 'SOFTSERIAL', haveTip: true, showNameInTip: true},
{bit: 7, group: 'other', name: 'GPS', haveTip: true},
{bit: 10, group: 'other', name: 'TELEMETRY', showNameInTip: true},
@ -593,7 +616,6 @@ var FC = {
},
getGpsProtocols: function () {
return [
'NMEA',
'UBLOX',
'UBLOX7',
'MSP',
@ -616,6 +638,7 @@ var FC = {
'North American WAAS',
'Japanese MSAS',
'Indian GAGAN',
'SouthPAN (AU/NZ)',
'Disabled'
];
},
@ -880,6 +903,7 @@ var FC = {
'GVAR 5', // 35
'GVAR 6', // 36
'GVAR 7', // 37
'Mixer Transition', // 38
];
},
getServoMixInputName: function (input) {
@ -1269,11 +1293,14 @@ var FC = {
30: "CRSF SNR",
31: "GPS Valid Fix",
32: "Loiter Radius [cm]",
33: "Active Profile",
33: "Active PIDProfile",
34: "Battery cells",
35: "AGL status [0/1]",
36: "AGL [cm]",
37: "Rangefinder [cm]",
38: "Active MixerProfile",
39: "MixerTransition Active",
40: "Yaw [deg]"
}
},
3: {