1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-14 11:59:51 +03:00

Consolidate the old PIDProfile and Profile in to Control Profile

- Consolidate the old `PIDProfile` and `Profile` in to `Control Profile`
- Improve consistency by maintaining the order of `Control Profile`, `Mixer Profile`, and `Battery Profile`.
- Added missing `Set Heading Target` operator to the programming UI
This commit is contained in:
Darren Lines 2024-06-02 18:54:28 +01:00
parent 5f5b55dd20
commit 164f9c7c20
6 changed files with 28 additions and 21 deletions

View file

@ -95,16 +95,6 @@
<div class="legend" i18n="sensorDataFlashFreeSpace"></div> <div class="legend" i18n="sensorDataFlashFreeSpace"></div>
</li> </li>
</ul> </ul>
<div id="mixer_profile_change">
<div class="dropdown dropdown-dark">
<form name="mixer-profile-change" id="mixer-profile-change">
<select class="dropdown-select" id="mixerprofilechange">
<option value="0" i18n="mixerProfile1"></option>
<option value="1" i18n="mixerProfile2"></option>
</select>
</form>
</div>
</div>
<div id="profile_change"> <div id="profile_change">
<div class="dropdown dropdown-dark"> <div class="dropdown dropdown-dark">
<form name="profile-change" id="profile-change"> <form name="profile-change" id="profile-change">
@ -117,6 +107,16 @@
</form> </form>
</div> </div>
</div> </div>
<div id="mixer_profile_change">
<div class="dropdown dropdown-dark">
<form name="mixer-profile-change" id="mixer-profile-change">
<select class="dropdown-select" id="mixerprofilechange">
<option value="0" i18n="mixerProfile1"></option>
<option value="1" i18n="mixerProfile2"></option>
</select>
</form>
</div>
</div>
<div id="battery_profile_change"> <div id="battery_profile_change">
<div class="dropdown dropdown-dark"> <div class="dropdown dropdown-dark">
<form name="battery-profile-change" id="battery-profile-change"> <form name="battery-profile-change" id="battery-profile-change">

View file

@ -53,13 +53,13 @@ const OPERAND_TYPES = {
30: "CRSF SNR", 30: "CRSF SNR",
31: "GPS Valid Fix", 31: "GPS Valid Fix",
32: "Loiter Radius [cm]", 32: "Loiter Radius [cm]",
33: "Active PIDProfile", 33: "Active Control Profile",
34: "Battery cells", 34: "Battery cells",
35: "AGL status [0/1]", 35: "AGL status [0/1]",
36: "AGL [cm]", 36: "AGL [cm]",
37: "Rangefinder [cm]", 37: "Rangefinder [cm]",
38: "Active MixerProfile", 38: "Active MixerProfile",
39: "MixerTransition Active", 39: "Mixer Transition Active",
40: "Yaw [deg]", 40: "Yaw [deg]",
41: "FW Land State" 41: "FW Land State"
} }

View file

@ -242,6 +242,13 @@ const LOGIC_OPERATORS = {
output: "boolean" output: "boolean"
}, },
39: {
name: "Set Heading Target",
operandType: "Set Flight Parameter",
hasOperand: [true, false],
output: "raw"
},
41: { 41: {
name: "Override Loiter Radius", name: "Override Loiter Radius",
operandType: "Set Flight Parameter", operandType: "Set Flight Parameter",
@ -249,7 +256,7 @@ const LOGIC_OPERATORS = {
output: "boolean" output: "boolean"
}, },
42: { 42: {
name: "Set Profile", name: "Set Control Profile",
operandType: "Set Flight Parameter", operandType: "Set Flight Parameter",
hasOperand: [true, false], hasOperand: [true, false],
output: "boolean" output: "boolean"

View file

@ -1319,7 +1319,7 @@ var mspHelper = (function () {
console.log('Looptime saved'); console.log('Looptime saved');
break; break;
case MSPCodes.MSP_SET_RESET_CURR_PID: case MSPCodes.MSP_SET_RESET_CURR_PID:
console.log('Current PID profile reset'); console.log('Current Control profile reset');
break; break;
case MSPCodes.MSP_SET_3D: case MSPCodes.MSP_SET_3D:
console.log('3D settings saved'); console.log('3D settings saved');

View file

@ -5132,10 +5132,10 @@
"message": "Enable if the motor direction is reversed and the props are mounted in the opposite direction." "message": "Enable if the motor direction is reversed and the props are mounted in the opposite direction."
}, },
"mixer_pid_profile_linking": { "mixer_pid_profile_linking": {
"message": "PID Profile will use same index as Mixer Profile index" "message": "Control Profile will use same index as Mixer Profile index"
}, },
"mixer_pid_profile_linking_hint": { "mixer_pid_profile_linking_hint": {
"message": "mixer_pid_profile_linking: Enable on both Mixer Profile if you want PID Profile switching handled by Mixer Profile switching(Recommend in vtol/mixed plaform type setup)" "message": "mixer_pid_profile_linking: Enable on both Mixer Profile if you want Control Profile switching handled by Mixer Profile switching(Recommend in vtol/mixed plaform type setup)"
}, },
"blackboxFields": { "blackboxFields": {
"message": "Blackbox fields" "message": "Blackbox fields"
@ -5459,13 +5459,13 @@
"message": "Mixer Profile 2" "message": "Mixer Profile 2"
}, },
"sensorProfile1": { "sensorProfile1": {
"message": "PID Profile 1" "message": "Control Profile 1"
}, },
"sensorProfile2": { "sensorProfile2": {
"message": "PID Profile 2" "message": "Control Profile 2"
}, },
"sensorProfile3": { "sensorProfile3": {
"message": "PID Profile 3" "message": "Control Profile 3"
}, },
"sensorBatteryProfile1": { "sensorBatteryProfile1": {
"message": "Battery Profile 1" "message": "Battery Profile 1"

View file

@ -1700,7 +1700,7 @@ dialog {
} }
#mixer_profile_change { #profile_change {
color: white; color: white;
margin-top: 16px; margin-top: 16px;
width: 130px; width: 130px;
@ -1709,7 +1709,7 @@ dialog {
line-height: 12px; line-height: 12px;
} }
#profile_change { #mixer_profile_change {
color: white; color: white;
margin-top: 16px; margin-top: 16px;
width: 130px; width: 130px;