mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-23 16:25:19 +03:00
improved hinting
This commit is contained in:
parent
c6b2e40cbb
commit
a722f89973
3 changed files with 28 additions and 22 deletions
31
js/fc.js
31
js/fc.js
|
@ -331,23 +331,24 @@ var FC = {
|
|||
var features = [
|
||||
{bit: 0, group: 'rxMode', mode: 'group', name: 'RX_PPM'},
|
||||
{bit: 1, group: 'batteryVoltage', name: 'VBAT'},
|
||||
{bit: 2, group: 'other', name: 'INFLIGHT_ACC_CAL'},
|
||||
{bit: 2, group: 'other', name: 'INFLIGHT_ACC_CAL', showNameInTip: true},
|
||||
{bit: 3, group: 'rxMode', mode: 'group', name: 'RX_SERIAL'},
|
||||
{bit: 4, group: 'esc', name: 'MOTOR_STOP'},
|
||||
{bit: 5, group: 'other', name: 'SERVO_TILT'},
|
||||
{bit: 6, group: 'other', name: 'SOFTSERIAL', haveTip: true},
|
||||
{bit: 5, group: 'other', name: 'SERVO_TILT', showNameInTip: true},
|
||||
{bit: 6, group: 'other', name: 'SOFTSERIAL', haveTip: true, showNameInTip: true},
|
||||
{bit: 7, group: 'gps', name: 'GPS', haveTip: true},
|
||||
{bit: 8, group: 'rxFailsafe', name: 'FAILSAFE'},
|
||||
{bit: 9, group: 'other', name: 'SONAR'},
|
||||
{bit: 10, group: 'other', name: 'TELEMETRY'},
|
||||
{bit: 9, group: 'other', name: 'SONAR', showNameInTip: true},
|
||||
{bit: 10, group: 'other', name: 'TELEMETRY', showNameInTip: true},
|
||||
{bit: 11, group: 'batteryCurrent', name: 'CURRENT_METER'},
|
||||
{bit: 12, group: 'other', name: '3D'},
|
||||
{bit: 12, group: 'other', name: '3D', showNameInTip: true},
|
||||
{bit: 13, group: 'rxMode', mode: 'group', name: 'RX_PARALLEL_PWM'},
|
||||
{bit: 14, group: 'rxMode', mode: 'group', name: 'RX_MSP'},
|
||||
{bit: 15, group: 'other', name: 'RSSI_ADC', haveTip: true},
|
||||
{bit: 16, group: 'other', name: 'LED_STRIP'},
|
||||
{bit: 17, group: 'other', name: 'DISPLAY'},
|
||||
{bit: 19, group: 'other', name: 'BLACKBOX', haveTip: true}
|
||||
{bit: 15, group: 'other', name: 'RSSI_ADC', haveTip: true, showNameInTip: true},
|
||||
{bit: 16, group: 'other', name: 'LED_STRIP', showNameInTip: true},
|
||||
{bit: 17, group: 'other', name: 'DISPLAY', showNameInTip: true},
|
||||
{bit: 19, group: 'other', name: 'BLACKBOX', haveTip: true, showNameInTip: true},
|
||||
{bit: 20, group: 'other', name: 'CHANNEL_FORWARDING', showNameInTip: true}
|
||||
];
|
||||
|
||||
if (semver.lt(CONFIG.flightControllerVersion, "1.3.0")) {
|
||||
|
@ -364,15 +365,9 @@ var FC = {
|
|||
$('.features.esc-priority').parent().hide();
|
||||
}
|
||||
|
||||
if (semver.gte(CONFIG.apiVersion, "1.12.0")) {
|
||||
features.push(
|
||||
{bit: 20, group: 'other', name: 'CHANNEL_FORWARDING'}
|
||||
);
|
||||
}
|
||||
|
||||
if (semver.gte(CONFIG.apiVersion, "1.16.0")) {
|
||||
features.push(
|
||||
{bit: 21, group: 'other', name: 'TRANSPONDER', haveTip: true}
|
||||
{bit: 21, group: 'other', name: 'TRANSPONDER', haveTip: true, showNameInTip: true}
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -385,7 +380,7 @@ var FC = {
|
|||
|
||||
if (semver.gte(CONFIG.flightControllerVersion, '1.3.0')) {
|
||||
features.push(
|
||||
{bit: 27, group: 'other', name: 'PWM_SERVO_DRIVER', haveTip: true}
|
||||
{bit: 27, group: 'other', name: 'PWM_SERVO_DRIVER', haveTip: true, showNameInTip: true}
|
||||
);
|
||||
}
|
||||
return features.reverse();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue