update hardware and nav animation
This commit is contained in:
@ -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);
|
||||
|
||||
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user