iNavFlight / inav

INAV: Navigation-enabled flight control software
https://inavflight.github.io
GNU General Public License v3.0
3.08k stars 1.46k forks source link

[LED strip] [NeoPixel] [WS2812] "RED" color in LED strip is pink, not red #9633

Open Pougnagna opened 8 months ago

Pougnagna commented 8 months ago

Current Behavior

The 2 led on the left side are showing "GPS not fixed" status. The 6 led on the right are in "Color" mode, and RED color number 2 is chosen.

IMG_20240112_154809__01

Steps to Reproduce

  1. Using 8 led bar, WS2812 NeoPixel from this shop https://www.electroseed.fr/shop/product_info.php?products_id=145
  2. Set a led in COLOR mode
  3. Choose color number 2 which is displayed as RED
  4. Color of the led is pink, not red
  5. Change this led to GPS mode while no GPS fix
  6. Now led shines in lovely red

Expected behavior

I expect to have led lit in red color, not pink

Suggested solution(s)

Change the color setting of RED number 2 to match the red color used by GPS mode.

Additional context


Note_2024-01-12_16_12_39_449

b14ckyy commented 5 months ago

can you please post a diff with the color set?

Pougnagna commented 5 months ago

can you please post a diff with the color set? @b14ckyy : Sure, will do tonight. Thanks in advance.

Pougnagna commented 5 months ago

Here is all LEDs info from diff:

LEDs

led 0 0,12::G:1 led 1 1,12::G:1 led 2 2,12::CN:2 led 3 3,12::CTN:2 led 4 4,12::CTN:2 led 5 5,12::CTN:2 led 6 6,12::CTN:2 led 7 7,12::CT:2 led 8 8,12::CTN:6 led 9 9,12::CTN:6 led 10 10,12::CTN:6 led 11 11,12::CTN:6 led 12 12,12::CTN:6 led 13 13,12::CN:6 led 14 14,12::CB:1 led 15 15,12::CB:1

LED color

color 14 359,0,255

LED mode_color

Modes [aux]

Pougnagna commented 5 months ago

LED 1, GPS mode image

Pougnagna commented 5 months ago

LED 2, color mode image