diff --git a/locales/en/messages.json b/locales/en/messages.json index 93adc0b60c..1cc37aab6e 100755 --- a/locales/en/messages.json +++ b/locales/en/messages.json @@ -2704,8 +2704,12 @@ "servosAngleAtMax": { "message": "Angle at max" }, - "servosDirectionAndRate": { - "message": "Direction and rate" + "servosRateAndDirection": { + "message": "Rate and direction" + }, + "servosRate": { + "message": "Rate:", + "description": "Label for 'Rate:' direction" }, "servosLiveMode": { "message": "Enable Live mode" diff --git a/src/js/tabs/servos.js b/src/js/tabs/servos.js index e2d995bfc4..0e16ed914f 100644 --- a/src/js/tabs/servos.js +++ b/src/js/tabs/servos.js @@ -50,7 +50,7 @@ servos.initialize = function (callback) { for (let i = 0; i < FC.RC.active_channels-4; i++) { servoHeader += `A${(i+1)}`; } - servoHeader += ''; + servoHeader += ''; for (let i = 0; i < FC.RC.active_channels; i++) { servoCheckbox += ``; @@ -69,8 +69,8 @@ servos.initialize = function (callback) { const subElement = `${name}`; - element += `${subElement}${FC.SERVO_CONFIG[obj].middle}" />`; element += `${subElement}${FC.SERVO_CONFIG[obj].min}" />`; + element += `${subElement}${FC.SERVO_CONFIG[obj].middle}" />`; element += `${subElement}${FC.SERVO_CONFIG[obj].max}" />`; element += `${servoCheckbox}`; @@ -85,8 +85,9 @@ servos.initialize = function (callback) { const select = $('div.tab-servos table.fields tr:last td.direction select'); + let rateLabel = i18n.getMessage('servosRate'); for (let i = 100; i > -101; i--) { - select.append(``); + select.append(``); } // select current rate diff --git a/src/tabs/servos.html b/src/tabs/servos.html index cbe24b1d23..3930a80c9b 100644 --- a/src/tabs/servos.html +++ b/src/tabs/servos.html @@ -11,8 +11,8 @@ - +
CH1 CH2