mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-15 04:15:28 +03:00
Remove disarm_kill_switch from the configurator UI
disarm_kill_switch can be a safety hazard if set to false without understanding what it does and should be left on for most cases. Also, it's too easy to change without knowing what it does. This change just removes it from the UI, so it's still available via CLI for advanced users.
This commit is contained in:
parent
9810a051e0
commit
c56c133493
3 changed files with 0 additions and 16 deletions
|
@ -310,7 +310,6 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
|
|||
|
||||
//fill motor disarm params and FC loop time
|
||||
$('input[name="autodisarmdelay"]').val(ARMING_CONFIG.auto_disarm_delay);
|
||||
$('input[name="disarmkillswitch"]').prop('checked', ARMING_CONFIG.disarm_kill_switch);
|
||||
$('div.disarm').show();
|
||||
if(bit_check(BF_CONFIG.features, 4)) {//MOTOR_STOP
|
||||
$('div.disarmdelay').show();
|
||||
|
@ -663,7 +662,6 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
|
|||
MISC.mag_declination = parseFloat($('#mag_declination').val());
|
||||
|
||||
ARMING_CONFIG.auto_disarm_delay = parseInt($('input[name="autodisarmdelay"]').val());
|
||||
ARMING_CONFIG.disarm_kill_switch = ~~$('input[name="disarmkillswitch"]').is(':checked'); // ~~ boolean to decimal conversion
|
||||
|
||||
MISC.minthrottle = parseInt($('#minthrottle').val());
|
||||
MISC.midrc = parseInt($('#midthrottle').val());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue