mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 20:28:37 +08:00
FMUv5: Fix RGB led usage - these are individual status leds.
This commit is contained in:
@@ -31,7 +31,8 @@ set(config_module_list
|
|||||||
drivers/px4fmu
|
drivers/px4fmu
|
||||||
drivers/px4io
|
drivers/px4io
|
||||||
drivers/rgbled
|
drivers/rgbled
|
||||||
drivers/rgbled_pwm
|
# Enable the line below to put the three leds into PWM RGB mode
|
||||||
|
#drivers/rgbled_pwm
|
||||||
drivers/stm32
|
drivers/stm32
|
||||||
drivers/stm32/adc
|
drivers/stm32/adc
|
||||||
drivers/stm32/tone_alarm
|
drivers/stm32/tone_alarm
|
||||||
|
|||||||
@@ -288,6 +288,9 @@ int led_init()
|
|||||||
return PX4_ERROR;
|
return PX4_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* the green LED is only available on FMUv5 */
|
||||||
|
(void)h_leds.ioctl(LED_ON, LED_GREEN);
|
||||||
|
|
||||||
/* the blue LED is only available on AeroCore but not FMUv2 */
|
/* the blue LED is only available on AeroCore but not FMUv2 */
|
||||||
(void)h_leds.ioctl(LED_ON, LED_BLUE);
|
(void)h_leds.ioctl(LED_ON, LED_BLUE);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user