update hardware and nav animation

This commit is contained in:
2026-02-14 21:18:41 +01:00
parent 284553f3f8
commit 5cc2bd0b1d
2 changed files with 5 additions and 4 deletions

View File

@ -197,6 +197,7 @@ static void anim_navigation(void)
rgb_t red = {255, 0, 0};
rgb_t green = {0, 255, 0};
rgb_t white = {255, 255, 255};
rgb_t black = {0, 0, 0};
// Anti-collision strobe pattern: Double flash at ~1 Hz
// Flash duration: 3 frames (~50ms) for high-intensity effect
@ -207,7 +208,7 @@ static void anim_navigation(void)
// Port (left) - Red navigation light OR white strobe (outer 3 LEDs of strip A)
if (num_leds_a >= 3)
{
rgb_t color_a = strobe_active ? white : red;
rgb_t color_a = strobe_active ? white : black;
led_set_pixel_a(num_leds_a - 1, color_a);
led_set_pixel_a(num_leds_a - 2, red);
led_set_pixel_a(num_leds_a - 3, red);
@ -216,7 +217,7 @@ static void anim_navigation(void)
// Starboard (right) - Green navigation light OR white strobe (outer 3 LEDs of strip B)
if (num_leds_b >= 3)
{
rgb_t color_b = strobe_active ? white : green;
rgb_t color_b = strobe_active ? white : black;
led_set_pixel_b(num_leds_b - 1, color_b);
led_set_pixel_b(num_leds_b - 2, green);
led_set_pixel_b(num_leds_b - 3, green);

View File

@ -24,8 +24,8 @@ static const char *TAG = "CONFIG";
#ifdef HARDCODED_CONFIG
#define HARDCODED_CONFIG_LED_STRIP_A_PIN 2U
#define HARDCODED_CONFIG_LED_STRIP_B_PIN 3U
#define HARDCODED_CONFIG_LED_STRIP_A_COUNT 1U
#define HARDCODED_CONFIG_LED_STRIP_B_COUNT 1U
#define HARDCODED_CONFIG_LED_STRIP_A_COUNT 9U
#define HARDCODED_CONFIG_LED_STRIP_B_COUNT 9U
#define HARDCODED_CONFIG_PWM_PIN 1U
#if defined(CONFIG_IDF_TARGET_ESP32C3)