1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-21 15:25:19 +03:00

Small improvements

This commit is contained in:
Andi Kanzler 2023-04-17 16:35:37 -03:00
parent 07eee3c961
commit e5a8bd0cac
3 changed files with 9 additions and 7 deletions

View file

@ -214,6 +214,9 @@
"sitlStdProfileCantDeleted": {
"message": "SITL standard profile can't be deleted."
},
"sitlStdProfileCantOverwritten": {
"message": "SITL standard profile can't be overwritten. Please create a new one."
},
"sitlSerialToTCP": {
"message": "Serial to TCP (UART)"
},
@ -239,10 +242,10 @@
"message": "SITL (Software in the loop) allows to run INAV completely in software on the PC without using a flight controller and simulate complete FPV flights. For this, INAV is compiled with a normal PC compiler. The sensors are replaced by data provided by a simulator.<br/>Currently supported are:<br/><ul><li><a href=\"https://www.realflight.com\" target=\"_blank\">RealFlight</a><br/></li><li><a href=\"https://www.x-plane.com\" target=\"_blank\">X-Plane</a></li></ul>"
},
"sitlProfilesHelp": {
"message": "Profiles are saved locally. The profiles contain not only all data of this tab, but also the configuration file (\"EEPROM\") of INAV itself."
"message": "Profiles are saved locally. The profiles contain not only all data of this tab, but also the configuration file (\"EEPROM\") of INAV itself. <br><span style=\"color: red\">Note:</span><br>Standard profiles can't be overwriten. To save your changes, create a new profile. "
},
"sitlEnableSimulatorHelp": {
"message": "If this option is deactivated, only the Configurator can be used. Useful to configure INAV without having to start the simulator."
"message": "If this option is deactivated, only UARTS (MSP/Configurator) can be used. Useful to configure INAV without having to start the simulator."
},
"sitlUseImuHelp": {
"message": "Use IMU sensor data from the simulator instead of using attitude data from the simulator directly (Experimental, not recommended)."

View file

@ -254,11 +254,6 @@ var SITLProcess = {
callback(error);
this.isRunning = false;
});
this.process.on('exit', () => {
if (this.isRunning)
this.spawn(path, args, callback);
});
},
stop: function() {

View file

@ -381,6 +381,10 @@ TABS.sitl.initialize = (callback) => {
}
function saveProfiles() {
if (currentProfile.isStdProfile) {
alert(chrome.i18n.getMessage('sitlStdProfileCantOverwritten'));
return;
}
var profilesToSave = [];
profiles.forEach(profile => {
if (!profile.isStdProfile)