大更新

This commit is contained in:
2025-09-06 13:04:19 +08:00
parent d626e4e656
commit f1c6b085a4
22 changed files with 277 additions and 206 deletions

View File

@@ -1,12 +0,0 @@
/*
弹道补偿算法。
*/
#include "ballistics.h"
void Ballistics_Init(Ballistics_t *b) { (void)b; }
void Ballistics_Apply(Ballistics_t *b, float bullet_speed) {
(void)b;
(void)bullet_speed;
}
void Ballistics_Reset(Ballistics_t *b) { (void)b; }

View File

@@ -1,23 +0,0 @@
/*
弹道补偿算法。
*/
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#include "ahrs.h"
typedef struct {
AHRS_Eulr_t *eulr;
} Ballistics_t;
void Ballistics_Init(Ballistics_t *b);
void Ballistics_Apply(Ballistics_t *b, float bullet_speed);
void Ballistics_Reset(Ballistics_t *b);
#ifdef __cplusplus
}
#endif

View File

@@ -1,6 +1,5 @@
/*
剩余电量算法。
通过电压值计算剩余电量。
*/

View File

@@ -11,7 +11,7 @@ extern "C" {
#include <stdbool.h>
#include <stdint.h>
#include "ahrs.h"
#include "component/ahrs.h"
#define CMD_REFEREE_MAX_NUM (3) /* 发送命令限定的最大数量 */

View File

@@ -1,3 +1,8 @@
ahrs,component/user_math.h
capacity,component/user_math.h
cmd,component/ahrs
error_detect,bsp/mm
pid,component/filter
ahrs,component/filter
filter,component/ahrs
filter,component/ahrs
mixer,component/user_math.h
ui,component/user_math.h
1 pid ahrs component/filter component/user_math.h
1 ahrs component/user_math.h
2 capacity component/user_math.h
3 cmd component/ahrs
4 error_detect bsp/mm
5 pid pid component/filter component/filter
6 ahrs filter component/filter component/ahrs
7 filter mixer component/ahrs component/user_math.h
8 ui component/user_math.h

View File

@@ -1,2 +1,14 @@
pid,好用的
ahrs,开源的
ahrs,开源的AHRS算法MadgwickAHRS
capacity,电池容量计算
cmd,通用控制命令
crc8,CRC8校验rm
crc16,CRC16校验rm
error_detect,错误检测
filter,各类滤波器
FreeRTOS_CLI,FreeRTOS命令行接口
limiter,限幅器
mixer,混控器
ui,用户交互
user_math,用户自定义数学函数
pid,PID控制器
1 pid 好用的
2 ahrs 开源的 开源的AHRS算法,MadgwickAHRS
3 capacity 电池容量计算
4 cmd 通用控制命令
5 crc8 CRC8校验rm
6 crc16 CRC16校验rm
7 error_detect 错误检测
8 filter 各类滤波器
9 FreeRTOS_CLI FreeRTOS命令行接口
10 limiter 限幅器
11 mixer 混控器
12 ui 用户交互
13 user_math 用户自定义数学函数
14 pid PID控制器