diff options
author | Konstantin Sharlaimov (DigitalEntity) <konstantin.sharlaimov@gmail.com> | 2016-05-05 14:12:09 +0300 |
---|---|---|
committer | Konstantin Sharlaimov (DigitalEntity) <konstantin.sharlaimov@gmail.com> | 2016-05-05 14:12:09 +0300 |
commit | 4e2f65eca654fea4517a06d71e13e55a5f9d9cbb (patch) | |
tree | 6ea1486b5bb526e0787b5df1d1525c7a8cbe5db6 | |
parent | fa3445e9fb9428559e7f199b8215ab6adfad07fc (diff) |
Various fixes. Flow sensor icon
-rw-r--r-- | main.css | 22 | ||||
-rwxr-xr-x | main.html | 3 | ||||
-rw-r--r-- | tabs/configuration.js | 11 |
3 files changed, 28 insertions, 8 deletions
@@ -302,6 +302,24 @@ input[type="number"]::-webkit-inner-spin-button { color: #818181; } +.opflowicon { + background-image: url(images/icons/sensor_flow_off.png); + background-size: 42px; + background-position: -5px 2px; + background-repeat: no-repeat; + height: 30px; + margin-top: 3px; + width: 100%; + padding-top: 40px; + color: #4f4f4f; + text-align: center; +} + +.opflowicon.active { + background-image: url(images/icons/sensor_flow_on.png); + color: #818181; +} + .baroicon { background-image: url(images/icons/sensor_baro_off.png); background-size: 40px; @@ -1451,7 +1469,7 @@ dialog { } /* GPS Fix styling*/ -.fix3D { +.fix3d { background-color: #56ac1d; padding: 2px; padding-left: 5px; @@ -1461,7 +1479,7 @@ dialog { font-size: 10px; } -.fix2D { +.fix2d { background-color: #bcbf10; padding: 2px; padding-left: 5px; @@ -167,6 +167,9 @@ <li class="gps" title="GPS"> <div class="gpsicon">GPS</div> </li> + <li class="opflow" title="Optical flow"> + <div class="opflowicon">Flow</div> + </li> <li class="sonar" title="Sonar / Range finder"> <div class="sonaricon">Sonar</div> </li> diff --git a/tabs/configuration.js b/tabs/configuration.js index 37e1aebb..ccb70766 100644 --- a/tabs/configuration.js +++ b/tabs/configuration.js @@ -257,7 +257,9 @@ TABS.configuration.initialize = function (callback, scrollPosition) { // generate GPS var gpsProtocols = [ 'NMEA', - 'UBLOX' + 'UBLOX', + 'I2C-NAV', + 'DJI NAZA', ]; var gpsBaudRates = [ @@ -325,13 +327,10 @@ TABS.configuration.initialize = function (callback, scrollPosition) { 'SUMD', 'SUMH', 'XBUS_MODE_B', - 'XBUS_MODE_B_RJ01' + 'XBUS_MODE_B_RJ01', + 'IBUS' ]; - if (semver.gte(CONFIG.apiVersion, "1.15.0")) { - serialRXtypes.push('IBUS'); - } - var serialRX_e = $('select.serialRX'); for (var i = 0; i < serialRXtypes.length; i++) { serialRX_e.append('<option value="' + i + '">' + serialRXtypes[i] + '</option>'); |