mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-20 06:45:11 +03:00
Small improvements
This commit is contained in:
parent
07eee3c961
commit
e5a8bd0cac
3 changed files with 9 additions and 7 deletions
|
@ -214,6 +214,9 @@
|
||||||
"sitlStdProfileCantDeleted": {
|
"sitlStdProfileCantDeleted": {
|
||||||
"message": "SITL standard profile can't be deleted."
|
"message": "SITL standard profile can't be deleted."
|
||||||
},
|
},
|
||||||
|
"sitlStdProfileCantOverwritten": {
|
||||||
|
"message": "SITL standard profile can't be overwritten. Please create a new one."
|
||||||
|
},
|
||||||
"sitlSerialToTCP": {
|
"sitlSerialToTCP": {
|
||||||
"message": "Serial to TCP (UART)"
|
"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>"
|
"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": {
|
"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": {
|
"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": {
|
"sitlUseImuHelp": {
|
||||||
"message": "Use IMU sensor data from the simulator instead of using attitude data from the simulator directly (Experimental, not recommended)."
|
"message": "Use IMU sensor data from the simulator instead of using attitude data from the simulator directly (Experimental, not recommended)."
|
||||||
|
|
|
@ -254,11 +254,6 @@ var SITLProcess = {
|
||||||
callback(error);
|
callback(error);
|
||||||
this.isRunning = false;
|
this.isRunning = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
this.process.on('exit', () => {
|
|
||||||
if (this.isRunning)
|
|
||||||
this.spawn(path, args, callback);
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
|
|
||||||
stop: function() {
|
stop: function() {
|
||||||
|
|
|
@ -381,6 +381,10 @@ TABS.sitl.initialize = (callback) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
function saveProfiles() {
|
function saveProfiles() {
|
||||||
|
if (currentProfile.isStdProfile) {
|
||||||
|
alert(chrome.i18n.getMessage('sitlStdProfileCantOverwritten'));
|
||||||
|
return;
|
||||||
|
}
|
||||||
var profilesToSave = [];
|
var profilesToSave = [];
|
||||||
profiles.forEach(profile => {
|
profiles.forEach(profile => {
|
||||||
if (!profile.isStdProfile)
|
if (!profile.isStdProfile)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue