This website requires JavaScript.
Explore
Help
Register
Sign In
ydy0615
/
balance
Watch
1
Star
0
Fork
0
You've already forked balance
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Files
c331d0bac08bfc5c1afc228b407bd9756b9a750f
balance
/
dm_imu
/
__pycache__
/
__init__.cpython-310.pyc
9 lines
1.2 KiB
Plaintext
Raw
Normal View
History
Unescape
Escape
refactor(build): restructure package layout and fix CMake build directory restoration - Update pybind_src to point to project root instead of dm_imu subdirectory - Change CMakeExtension module from "imu_py" to "dm_imu.imu_py" - Switch to find_packages() with package_dir for automatic package discovery - Add saving/restoring of CWD in CMake build to prevent directory side effects
2025-12-10 21:11:21 +08:00
o
fix(legs, balance): invert wheel1/3 velocities and persist offset state - Negated velocities for wheel1 and wheel3 in `control_wheels_vel` to match hardware direction, ensuring correct movement. - Introduced `self.offs` in `BalanceController` to store offset values across calls instead of recreating them each update. - Refactored `_update_offsets` to operate on the instance offsets, increased threshold sensitivity from 0.2 to 1, and adjusted scaling factors for smoother offset accumulation. - Simplified offset limiting and normalization logic, removing redundant local variables. - Updated `run_balance_loop` to initialize and use the persistent `self.offs` state. These changes fix incorrect wheel commands and improve the stability and accuracy of the balance controller's offset handling.
2025-12-21 11:23:46 +08:00