diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 8d9fbac7..c1d54155 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -323,5 +323,48 @@ }, "auxiliaryEepromSaved": { "message": "EEPROM saved" + }, + + "servosModel": { + "message": "Model:" + }, + "servosChangeDirection": { + "message": "Change Direction in TX To Match" + }, + "servosGyroAccelDirection": { + "message": "Gyroscope / Accelerometer Direction" + }, + "servosName": { + "message": "Name" + }, + "servosMid": { + "message": "MID" + }, + "servosMin": { + "message": "MIN" + }, + "servosMax": { + "message": "MAX" + }, + "servosDirection": { + "message": "Direction" + }, + "servosLiveMode": { + "message": "Enable Live mode:" + }, + "servosButtonSave": { + "message": "Save" + }, + "servosModelNoSupport": { + "message": "This model doesn't support servos" + }, + "servosNormal": { + "message": "Normal" + }, + "servosReverse": { + "message": "Reverse" + }, + "servosEepromSave": { + "message": "EEPROM saved" } } \ No newline at end of file diff --git a/tabs/servos.css b/tabs/servos.css index 7d1d5767..697e3204 100644 --- a/tabs/servos.css +++ b/tabs/servos.css @@ -53,7 +53,9 @@ vertical-align: middle; } .tab-servos table input[type="number"] { - width: 65px; + display: block; + + width: calc(100% - 5px); height: 20px; padding-right: 5px; diff --git a/tabs/servos.html b/tabs/servos.html index c9dcc6ea..1ad006a5 100644 --- a/tabs/servos.html +++ b/tabs/servos.html @@ -1,13 +1,13 @@
- Model: +
-
Change Direction in TX To Match
+
- - - - + + + + @@ -16,21 +16,21 @@ - +
NameMIDMINMAX CH-1 CH-2 CH-3AUX2 AUX3 AUX4Direction
-
Gyroscope / Accelerometer Direction
+
- - + +
NameDirection
- Enable Live mode: +
- Save +
\ No newline at end of file diff --git a/tabs/servos.js b/tabs/servos.js index 707db735..64f38801 100644 --- a/tabs/servos.js +++ b/tabs/servos.js @@ -37,8 +37,8 @@ function tab_initialize_servos() { ' + name + '\ \ \ \ \ @@ -180,7 +180,7 @@ function tab_initialize_servos() { if (save_to_eeprom) { // Save changes to EEPROM send_message(MSP_codes.MSP_EEPROM_WRITE, false, false, function() { - GUI.log('EEPROM saved'); + GUI.log(chrome.i18n.getMessage('servosEepromSave')); var element = $('a.update'); element.addClass('success'); @@ -201,7 +201,7 @@ function tab_initialize_servos() { switch (CONFIG.multiType) { case 1: // TRI // looking ok so far - model.html('TRI'); + model.text('TRI'); process_directions('YAW', 5, 0); @@ -209,7 +209,7 @@ function tab_initialize_servos() { break; case 4: // BI // looking ok so far - model.html('BI'); + model.text('BI'); process_directions('L YAW', 4, 1); process_directions('R YAW', 5, 1); @@ -221,7 +221,7 @@ function tab_initialize_servos() { break; case 5: // Gimbal // needs to be verified - model.html('Gimbal'); + model.text('Gimbal'); // rate process_servos('Pitch Servo', '', 0, 2); @@ -229,7 +229,7 @@ function tab_initialize_servos() { break; case 8: // Flying Wing // looking ok so far - model.html('Flying Wing'); + model.text('Flying Wing'); process_directions('L ROLL', 3, 1); process_directions('R ROLL', 4, 1); @@ -240,7 +240,7 @@ function tab_initialize_servos() { process_servos('Right Wing', '', 4, false); break; case 14: // Airplane - model.html('Airplane'); + model.text('Airplane'); // rate process_servos('Wing 1', '', 3, 2); @@ -250,7 +250,7 @@ function tab_initialize_servos() { break; case 20: // Dualcopter // looking ok so far - model.html('Dualcopter'); + model.text('Dualcopter'); process_directions('PITCH', 4, 0); process_directions('ROLL', 5, 0); @@ -260,7 +260,7 @@ function tab_initialize_servos() { break; case 21: // Singlecopter // looking ok so far - model.html('Singlecopter'); + model.text('Singlecopter'); process_servos('Right', 'R YAW', 3, true); process_servos('Left', 'L YAW', 4, true); @@ -269,13 +269,13 @@ function tab_initialize_servos() { break; default: - model.html("This model doesn't support servos"); + model.text(chrome.i18n.getMessage('servosModelNoSupport')); // implementation of feature servo_tilt if (AUX_CONFIG.indexOf('CAMSTAB') > -1 || AUX_CONFIG.indexOf('CAMTRIG') > -1) { // Gimbal on // needs to be verified - model.html('Gimbal / Tilt Servos'); + model.text('Gimbal / Tilt Servos'); // rate process_servos('Pitch Servo', '', 0, 2);