Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/iNavFlight/inav-configurator.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Lines <darren@darrenlines.uk>2022-05-30 22:38:12 +0300
committerDarren Lines <darren@darrenlines.uk>2022-05-30 22:38:12 +0300
commit3174f8992701aa1877bf71e3b98a30a78ec70512 (patch)
treea7fc91a9066d852de73e51a95970f457e370b7cf
parent617a89e1da20a44a1ac0de98bc652e047e888980 (diff)
Added additional unit for ms that stays as msMrD_Fix-unit-lables
-rw-r--r--js/settings.js4
-rw-r--r--tabs/advanced_tuning.html6
2 files changed, 7 insertions, 3 deletions
diff --git a/js/settings.js b/js/settings.js
index ceaa407b..ccc06d10 100644
--- a/js/settings.js
+++ b/js/settings.js
@@ -242,6 +242,7 @@ var Settings = (function () {
'cmss' : 'cm/s/s',
// Time
'msec' : 'ms',
+ 'msec-nc' : 'ms', // Milliseconds, but not converted.
'dsec' : 'ds',
'sec' : 's',
// Angles
@@ -309,6 +310,9 @@ var Settings = (function () {
'hftmin' : 50.8,
'fts' : 30.48
},
+ 'msec-nc' : {
+ 'msec-nc' : 1
+ },
'msec' : {
'sec' : 1000
},
diff --git a/tabs/advanced_tuning.html b/tabs/advanced_tuning.html
index 7390a112..ef8d3806 100644
--- a/tabs/advanced_tuning.html
+++ b/tabs/advanced_tuning.html
@@ -38,12 +38,12 @@
<div for="launchAccel" class="helpicon cf_tip" data-i18n_title="configurationLaunchAccelHelp"></div>
</div>
<div class="number">
- <input type="number" id="launchDetectTime" data-unit="msec" data-setting="nav_fw_launch_detect_time" data-setting-multiplier="1" step="1" min="10" max="1000" />
+ <input type="number" id="launchDetectTime" data-unit="msec-nc" data-setting="nav_fw_launch_detect_time" data-setting-multiplier="1" step="1" min="10" max="1000" />
<label for="launchDetectTime"><span data-i18n="configurationLaunchDetectTime"></span></label>
<div for="launchDetectTime" class="helpicon cf_tip" data-i18n_title="configurationLaunchDetectTimeHelp"></div>
</div>
<div class="number">
- <input type="number" id="launchMotorDelay" data-unit="msec" data-setting="nav_fw_launch_motor_delay" data-setting-multiplier="1" step="1" min="0" max="5000" />
+ <input type="number" id="launchMotorDelay" data-unit="msec-nc" data-setting="nav_fw_launch_motor_delay" data-setting-multiplier="1" step="1" min="0" max="5000" />
<label for="launchMotorDelay"><span data-i18n="configurationLaunchMotorDelay"></span></label>
<div for="launchMotorDelay" class="helpicon cf_tip" data-i18n_title="configurationLaunchMotorDelayHelp"></div>
</div>
@@ -53,7 +53,7 @@
<div for="launchMinTime" class="helpicon cf_tip" data-i18n_title="configurationLaunchMinTimeHelp"></div>
</div>
<div class="number">
- <input type="number" id="launchSpinupTime" data-unit="msec" data-setting="nav_fw_launch_spinup_time" data-setting-multiplier="1" step="1" min="0" max="1000" />
+ <input type="number" id="launchSpinupTime" data-unit="msec-nc" data-setting="nav_fw_launch_spinup_time" data-setting-multiplier="1" step="1" min="0" max="1000" />
<label for="launchSpinupTime"><span data-i18n="configurationLaunchSpinupTime"></span></label>
<div for="launchSpinupTime" class="helpicon cf_tip" data-i18n_title="configurationLaunchSpinupTimeHelp"></div>
</div>