Support LED cmds GPS, RSSI & Blink in configurator
Implement initial support for new LED commands implemented in CF PR 2101.10.3.x-maintenance
parent
81a49d48b2
commit
6c964164e4
|
@ -126,7 +126,7 @@ var MSP = {
|
|||
unsupported: 0,
|
||||
|
||||
ledDirectionLetters: ['n', 'e', 's', 'w', 'u', 'd'], // in LSB bit order
|
||||
ledFunctionLetters: ['i', 'w', 'f', 'a', 't', 'r', 'c'], // in LSB bit order
|
||||
ledFunctionLetters: ['i', 'w', 'f', 'a', 't', 'r', 'c', 'g', 's', 'b'], // in LSB bit order
|
||||
|
||||
supportedBaudRates: [ // 0 based index.
|
||||
'AUTO',
|
||||
|
|
|
@ -72,6 +72,24 @@
|
|||
border-color: black;
|
||||
}
|
||||
|
||||
.tab-led-strip .gPoint.function-g { /* GPS */
|
||||
background: green;
|
||||
box-shadow: inset 0 0 30px rgba(0, 0, 0, .7);
|
||||
border-color: rgb(52, 155, 255);
|
||||
}
|
||||
|
||||
.tab-led-strip .gPoint.function-s { /* RSSI */
|
||||
background: brown;
|
||||
box-shadow: inset 0 0 30px rgba(0, 0, 0, .7);
|
||||
border-color: rgb(52, 155, 255);
|
||||
}
|
||||
|
||||
.tab-led-strip .gPoint.function-b { /* Blink */
|
||||
background: white;
|
||||
box-shadow: inset 0 0 30px rgba(0, 0, 0, .7);
|
||||
border-color: rgb(52, 155, 255);
|
||||
}
|
||||
|
||||
.tab-led-strip .gPoint.function-i.function-f {
|
||||
background: linear-gradient(to bottom, yellow 0%,yellow 50%,rgb(50, 205, 50) 50%, rgb(50, 205, 50) 100%);
|
||||
}
|
||||
|
@ -171,6 +189,9 @@
|
|||
.tab-led-strip .functions .function-c.btnOn {
|
||||
background: linear-gradient( to bottom right, rgba(255, 0, 0, .5) 0%, rgba(255, 255, 0, 0.5) 15%, rgba(0, 255, 0, .5) 30%, rgba(0, 255, 255, .5) 50%, rgba(0, 0, 255, .5) 65%, rgba(255, 0, 255, .5) 80%, rgba(255, 0, 0, .5) 100%);
|
||||
}
|
||||
.tab-led-strip .functions .function-g.btnOn {background: green;}
|
||||
.tab-led-strip .functions .function-s.btnOn {background: brown;}
|
||||
.tab-led-strip .functions .function-b.btnOn {background: white;}
|
||||
|
||||
.tab-led-strip .color-1 {background: white;}
|
||||
.tab-led-strip .color-2 {background: red;}
|
||||
|
|
|
@ -45,6 +45,9 @@
|
|||
<button class="function-t w50">Throttle</button>
|
||||
<button class="function-r w50">Ring</button>
|
||||
<button class="function-c w50">Color</button>
|
||||
<button class="function-g w50">GPS</button>
|
||||
<button class="function-s w50">RSSI</button>
|
||||
<button class="function-b w50">Blink</button>
|
||||
</div>
|
||||
|
||||
<div class="section">LED Orientation and Color</div>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
TABS.led_strip = {
|
||||
wireMode: false,
|
||||
functions: ['w', 'f', 'i', 'a', 't', 'r', 'c'],
|
||||
functions: ['w', 'f', 'i', 'a', 't', 'r', 'c', 'g', 's', 'b'],
|
||||
directions: ['n', 'e', 's', 'w', 'u', 'd'],
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue