From 1406dc07b4dc91321c30554c8564457fb29d7c94 Mon Sep 17 00:00:00 2001 From: HThuren <99370924+HThuren@users.noreply.github.com> Date: Wed, 12 Apr 2023 16:35:45 +0200 Subject: [PATCH] More feature tip at Configuration tab (#3413) * More feature tip * haveTip ajusted in feature.js * Review resolved --- locales/en/messages.json | 15 +++++++++++++++ src/js/Features.js | 10 +++++----- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/locales/en/messages.json b/locales/en/messages.json index e623c992..a15c3eb1 100644 --- a/locales/en/messages.json +++ b/locales/en/messages.json @@ -1141,12 +1141,21 @@ "featureSONAR": { "message": "Sonar" }, + "featureSONARTip": { + "message": "Enable Sonar rangefinder to measure distance to ground in cm" + }, "featureTELEMETRY": { "message": "Telemetry output" }, + "featureTELEMETRYTip": { + "message": "Enable telemetry output to send to transmitter" + }, "feature3D": { "message": "3D mode (for use with reversible ESCs)" }, + "feature3DTip": { + "message": "Enable 3D mode for use with reversible ESCs, configure at Motors tab" + }, "featureRX_PARALLEL_PWM": { "message": "PWM (one wire per channel)" }, @@ -1159,6 +1168,9 @@ "featureLED_STRIP": { "message": "Multi-color RGB LED strip support" }, + "featureLED_STRIPTip": { + "message": "Enable Multi-color RGB LED strip support, configure at LED Strip tab" + }, "featureDISPLAY": { "message": "OLED Screen Display" }, @@ -1168,6 +1180,9 @@ "featureOSD": { "message": "On Screen Display" }, + "featureOSDTip": { + "message": "Enable OSD, configure at OSD tab" + }, "featureCHANNEL_FORWARDING": { "message": "Forward aux channels to servo outputs" }, diff --git a/src/js/Features.js b/src/js/Features.js index 4a120d8e..89ef051f 100644 --- a/src/js/Features.js +++ b/src/js/Features.js @@ -14,15 +14,15 @@ const Features = function (config) { {bit: 5, group: 'other', name: 'SERVO_TILT', haveTip: true, dependsOn: 'SERVOS'}, {bit: 6, group: 'other', name: 'SOFTSERIAL', haveTip: true}, {bit: 7, group: 'other', name: 'GPS', haveTip: true, dependsOn: 'GPS'}, - {bit: 9, group: 'other', name: 'SONAR', dependsOn: 'RANGEFINDER'}, - {bit: 10, group: 'telemetry', name: 'TELEMETRY', dependsOn: 'TELEMETRY'}, - {bit: 12, group: '3D', name: '3D'}, + {bit: 9, group: 'other', name: 'SONAR', haveTip: true, dependsOn: 'RANGEFINDER'}, + {bit: 10, group: 'telemetry', name: 'TELEMETRY', haveTip: true, dependsOn: 'TELEMETRY'}, + {bit: 12, group: '3D', name: '3D', haveTip: true}, {bit: 13, group: 'rxMode', mode: 'select', name: 'RX_PARALLEL_PWM'}, {bit: 14, group: 'rxMode', mode: 'select', name: 'RX_MSP'}, {bit: 15, group: 'rssi', name: 'RSSI_ADC'}, - {bit: 16, group: 'other', name: 'LED_STRIP', dependsOn: 'LED_STRIP'}, + {bit: 16, group: 'other', name: 'LED_STRIP', haveTip: true, dependsOn: 'LED_STRIP'}, {bit: 17, group: 'other', name: 'DISPLAY', haveTip: true, dependsOn: 'DASHBOARD'}, - {bit: 18, group: 'other', name: 'OSD', dependsOn: 'OSD'}, + {bit: 18, group: 'other', name: 'OSD', haveTip: true, dependsOn: 'OSD'}, {bit: 20, group: 'other', name: 'CHANNEL_FORWARDING', dependsOn: 'SERVOS'}, {bit: 21, group: 'other', name: 'TRANSPONDER', haveTip: true, dependsOn: 'TRANSPONDER'}, {bit: 22, group: 'other', name: 'AIRMODE'},