16 Commits

Author SHA1 Message Date
robinson
dac04e528b [modify] pid params 2026-05-23 01:13:03 +08:00
robinson
361caca427 [release] version 1.0.0 2026-05-23 00:16:40 +08:00
robinson
9171374490 [feat] project add deadzone 2026-05-22 00:12:16 +08:00
robinson
bbe8bd06bc refactor(callback_task): replace hardcoded dispatch with cmd_parser module
Separate command handlers into dedicated static functions registered
with cmd_parser, replacing the strcmp/strncmp chain.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-21 19:35:51 +08:00
robinson
cf934cf6b7 [feat] UART command interface, per-motor control, filtering modules
- Add callback_task with ISR-based UART command parser (@command\n protocol)
- Add log_printf with mutex protection to prevent printf interleaving
- Add per-motor enable/disable (motor enable yaw|pitch)
- Add PID tuning via UART (pid roll kp 15)
- Add cmd_parser module (registration + tokenize + dispatch)
- Add UART layer architecture (interface → HAL → BSP)
- Add filter modules (lowpass, moving_average, notch, rate_limiter)
- Rewrite I2C bus and UART bus modules
- Rewrite PID controller and MF4010V2 motor driver
- Fix soft I2C driver

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-21 01:38:11 +08:00
wujunxiao
75966b174d [docs] agent docs added 2026-05-12 16:48:47 +08:00
robinson
a697505ec0 fix(i2c): fix soft I2C driver - ACK polarity, SDA transitions, push-pull mode, timeout, float printf 2026-05-12 00:22:59 +08:00
robinson
5bf1920867 [add] soft i2c rewrite 2026-05-11 08:25:49 +08:00
CloudPlant Team
ed81f89cd6 [add] new api interface 2026-04-19 00:08:14 +08:00
CloudPlant Team
1710e1294e [feat] 添加二轴云台增稳控制和 Soft I2C 模块
主要变更:
- 二轴云台增稳控制 (control_task.c): 保持 Roll=0, Pitch=0
  - 双 PID 控制器补偿基座倾斜
  - Yaw 电机补偿 Roll 轴,Pitch 电机补偿 Pitch 轴
  - 100Hz 控制循环

- Soft I2C 模块 (modules/bus/soft_i2c/):
  - 基于 GPIO 位时序的 I2C 实现
  - 支持多实例,可适配到 i2c_if 接口
  - 适配层用于 WIT 传感器 (sensor_i2c_port.c)

- MF4010V2 驱动增强:
  - 添加 mf4010v2_set_angle() 位置控制函数
  - 完善命令生成函数文档

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-18 21:56:30 +08:00
robinson
dcb33f8a99 [add] add app level code 2026-04-18 11:02:40 +08:00
robinson
a8b7c716f3 [del] delete backup file 2026-04-16 23:09:43 +08:00
CloudPlant Team
25095060c2 [add] new can1 interface 2026-04-16 23:07:07 +08:00
robinson
33d3feede4 [add] added new hal level led/can 2026-04-16 22:55:16 +08:00
CloudPlant Team
1c2d945a6d 重构项目:移除JY901传感器,添加CAN总线支持,集成电机/传感器模块库 2026-04-13 22:49:49 +08:00
CloudPlant Team
116f06ec3c Initial commit: CloudPlant STM32F407 project with JY-901 sensor integration 2026-03-30 20:26:52 +08:00