LED Strip: add rainbow overlay - #11816
Conversation
|
ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing |
Branch Targeting SuggestionYou've targeted the
If This is an automated suggestion to help route contributions to the appropriate branch. |
PR Summary by QodoLED strip: add rainbow sweep overlay ('V') with configurable rate and spacing
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
Code Review by Qodo
1.
|
Adds a new RGB sweep/rainbow overlay ('V') to the LED strip system.
When enabled on any LED, the overlay continuously sweeps through the colour spectrum using a fixed-point accumulator for efficient hue advancement. The sweep rate and per-LED hue offset are configurable via two new settings:
ledstrip_rainbow_sweep_rate(0-255, default 10) — controls sweep speed. Higher values sweep faster. 0 freezes the rainbow.ledstrip_rainbow_delta_deg(0-359, default 30) — hue offset in degrees between adjacent rainbow LEDs. Larger values spread more of the spectrum across the strip.Companion configurator PR: iNavFlight/inav-configurator#2714
Testing: Verified on SKYSTARSH743HD with 14 LEDs configured with the rainbow overlay active.