refactor: device_status_t 去重 — 消除与 FOC_Controller 的 ~25 字段重复
device_status_t 从 ~50 字段缩减为 ~25 字段,仅保留协议独有配置。 read_register/write_register 不再缓存 motor_foc 镜像,直接从源头读写。
删除字段: current, speed, position, target_current, target_speed, target_position, work_mode, enabled, stop_current, alarm_status, bus_voltage, temperature, current_p/i, speed_p/i, position_p/i, current_limit, speed_limit, selfdefine_* (5个)
同时清理 task_manager.c/position_control.c/system_monitor.c 中 对 selfdefine_control_mode/work_mode 的写入。
Co-Authored-By: Claude noreply@anthropic.com
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
Motor_Drive