Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/iNavFlight/inav-configurator.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.css22
-rwxr-xr-xmain.html3
-rw-r--r--tabs/configuration.js11
3 files changed, 28 insertions, 8 deletions
diff --git a/main.css b/main.css
index 916d505e..e9084363 100644
--- a/main.css
+++ b/main.css
@@ -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;
diff --git a/main.html b/main.html
index 14783c82..019b86f8 100755
--- a/main.html
+++ b/main.html
@@ -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>');