增加调试功能,以及yaw补偿

This commit is contained in:
lyf committed 2026-11-18 16:05:46 +08:00
1 parent 267a659242
commit 957c535bda
257 files changed
+239436 -692

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
#ifndef LED_H
#define LED_H
#include <stdint.h>
/* C 板 RGB LED(TIM5 CH1/2/3 -> PH10 蓝 / PH11 绿 / PH12 红,低电平点亮经 PWM 实现)
* 与 legacy LED_SetColor 映射一致 */
extern void led_init(void); /* 配置 TIM5 为 1kHz PWM */
/* 若尚未初始化则先初始化(可在任意上下文安全调用,供传感器报警等早期使用) */
extern void led_ensure_init(void);
extern void led_set_color(uint8_t r, uint8_t g, uint8_t b); /* 0~255 */
extern void led_set_all_off(void);
extern void led_set_red(uint8_t on);
extern void led_set_green(uint8_t on);
extern void led_set_blue(uint8_t on);
#endif