mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-14 03:49:53 +03:00
Add support to configure LED strip to modify color with RC channel
This commit is contained in:
parent
2730bfdd69
commit
b032fac62d
5 changed files with 21 additions and 4 deletions
|
@ -72,7 +72,7 @@ var MSP = {
|
|||
|
||||
ledDirectionLetters: ['n', 'e', 's', 'w', 'u', 'd'], // in LSB bit order
|
||||
ledFunctionLetters: ['i', 'w', 'f', 'a', 't', 'r', 'c', 'g', 's', 'b', 'l'], // in LSB bit order
|
||||
ledBaseFunctionLetters: ['c', 'f', 'a', 'l', 's', 'g', 'r'], // in LSB bit
|
||||
ledBaseFunctionLetters: ['c', 'f', 'a', 'l', 's', 'g', 'r', 'h'], // in LSB bit
|
||||
ledOverlayLetters: ['t', 'o', 'b', 'n', 'i', 'w'], // in LSB bit
|
||||
|
||||
last_received_timestamp: null,
|
||||
|
|
|
@ -2664,7 +2664,7 @@ var mspHelper = (function (gui) {
|
|||
/*
|
||||
ledDirectionLetters: ['n', 'e', 's', 'w', 'u', 'd'], // in LSB bit order
|
||||
ledFunctionLetters: ['i', 'w', 'f', 'a', 't', 'r', 'c', 'g', 's', 'b', 'l'], // in LSB bit order
|
||||
ledBaseFunctionLetters: ['c', 'f', 'a', 'l', 's', 'g', 'r'], // in LSB bit
|
||||
ledBaseFunctionLetters: ['c', 'f', 'a', 'l', 's', 'g', 'r', 'h'], // in LSB bit
|
||||
ledOverlayLetters: ['t', 'o', 'b', 'n', 'i', 'w'], // in LSB bit
|
||||
|
||||
*/
|
||||
|
|
|
@ -74,6 +74,12 @@
|
|||
border-color: rgb(52, 155, 255);
|
||||
}
|
||||
|
||||
.tab-led-strip .gPoint.function-h { /* Channel */
|
||||
background: skyblue;
|
||||
box-shadow: inset 0 0 30px rgba(0, 0, 0, .7);
|
||||
border-color: black;
|
||||
}
|
||||
|
||||
.tab-led-strip .gPoint.function-c .overlay-color,
|
||||
.tab-led-strip .gPoint.function-r .overlay-color {
|
||||
float: left;
|
||||
|
@ -210,6 +216,7 @@
|
|||
.tab-led-strip .select .function-g { background: green;}
|
||||
/* .tab-led-strip .select .function-b { background: white; color:black;} */
|
||||
.tab-led-strip .select .function-r { background: #acacac;}
|
||||
.tab-led-strip .select .function-h { background: skyblue;}
|
||||
|
||||
.tab-led-strip .select .functionSelect option {
|
||||
background: white;
|
||||
|
|
|
@ -65,6 +65,7 @@
|
|||
<option value="function-s" class="extra_functions20">RSSI</option>
|
||||
<option value="function-g" class="extra_functions20">GPS</option>
|
||||
<option value="function-r" class="">Ring</option>
|
||||
<option value="function-h" class="channel_info">Channel</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
@ -105,6 +106,10 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="channel_info">
|
||||
<span class="color_section">Select Channel from color list</span>
|
||||
</div>
|
||||
|
||||
<div class="mode_colors">
|
||||
<div class="section">Mode colors</div>
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ TABS.led_strip.initialize = function (callback, scrollPosition) {
|
|||
TABS.led_strip.overlays = ['t', 's', 'i', 'w'];
|
||||
} else {
|
||||
TABS.led_strip.functions = ['i', 'w', 'f', 'a', 't', 'r', 'c', 'g', 's', 'b', 'l', 'o', 'n'];
|
||||
TABS.led_strip.baseFuncs = ['c', 'f', 'a', 'l', 's', 'g', 'r'];
|
||||
TABS.led_strip.baseFuncs = ['c', 'f', 'a', 'l', 's', 'g', 'r', 'h'];
|
||||
TABS.led_strip.overlays = ['t', 'o', 'b', 'n', 'i', 'w'];
|
||||
}
|
||||
|
||||
|
@ -799,6 +799,7 @@ TABS.led_strip.initialize = function (callback, scrollPosition) {
|
|||
$('.modifiers').hide();
|
||||
$('.blinkers').hide();
|
||||
$('.warningOverlay').hide();
|
||||
$('.channel_info').hide();
|
||||
|
||||
if (areOverlaysActive(activeFunction))
|
||||
$('.overlays').show();
|
||||
|
@ -867,6 +868,10 @@ TABS.led_strip.initialize = function (callback, scrollPosition) {
|
|||
$('.mode_color-6-0').show(); // disarmed
|
||||
$('.mode_color-6-1').show(); // armed
|
||||
break;
|
||||
case "function-h": // Channel
|
||||
$('.special_colors').hide();
|
||||
$('.channel_info').show();
|
||||
break;
|
||||
|
||||
case "function-r": // Ring
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue