Skip to content

refactor: 深度重構 state 與 hardware controller#12

Open
Weiyu1105 wants to merge 18 commits intomainfrom
codex/apply-deep-refactoring-with-detailed-comments
Open

refactor: 深度重構 state 與 hardware controller#12
Weiyu1105 wants to merge 18 commits intomainfrom
codex/apply-deep-refactoring-with-detailed-comments

Conversation

@Weiyu1105
Copy link
Contributor

Summary

  • reorganize code into controllers, inputs, core, and utils packages
  • redesign state.py with clear OperatingMode and hardware data separation
  • rewrite hardware controller service for Teensy interaction

Testing

  • python -m pytest -q

https://chatgpt.com/codex/tasks/task_e_689061f7f2008328a78c3a7e7b61828a

…e/ControlSubMode 架構, 移除舊 control_mode 依賴\n- add legacy control_mode property to SimulationState 以相容舊模組
- add CascadeControllerConfig & 移除固定 control_dt
- PD 控制支援 bias 開關並更新 quaternion 計算
- main_nicegui 加入 thread-safe 參考設定
- 修正 sim_latest_quat 語法並使用 float32
- warn when ONNX input dim mismatch & skip 無 accelerometer 模型
- DebugOverlay pass state to sync page count
- 補充 keyboard/gamepad 指令軸順序註解

Testing: python -m pytest -q
…錄並加入搜尋路徑設定,避免 ModuleNotFoundError.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant