- Introduced `MotorControlInputs` struct to centralize motor control state. - Renamed `sensor` to `encoder` for clarity in naming conventions. - Added `send_velocity`, `send_angle`, and `send_motor_enabled` functions for modular CAN message handling. - Updated `setup_foc` to enhance motor initialization with configurable parameters. - Replaced `run_foc` with `foc_step` for improved motor control logic: - Dynamically switches between angle and velocity control based on inputs. - Enhanced CAN message handling with `read_can_step` to process specific control commands. - Adjusted current sensing and other configuration values for precision. - Added placeholders for temperature sensor setup and handling. |
||
---|---|---|
.. | ||
include | ||
knowledges | ||
lib | ||
src | ||
test | ||
.clang-tidy | ||
.clangd | ||
.gitignore | ||
check_gcc_version.py | ||
cubemx_config.ioc | ||
gen_compile_commands.py | ||
platformio.ini | ||
README.md |
Встроенное ПО для сервипривода на STM32F446RE
Для разработки
pip install -U platformio
platformio run --environment robotroller_reborn
platformio run --target upload --environment robotroller_reborn
platformio device monitor