- Changed `monitor_speed` in `platformio.ini` from `115200` to `19200` for compatibility. - Initialized `MotorControlInputs` struct members with default values. - Uncommented digital write operations in `doMotor` for proper execution. - Disabled debug output and monitoring configurations for cleaner operation. - Adjusted motor tuning parameters by commenting out specific settings. - Changed `Serial.begin(115200)` to `Serial.begin(19200)` in `setup()` to match the new monitor speed. - Commented out `_delay(1000)` and `current_angle` variable to remove unnecessary delays and unused code.
28 lines
759 B
INI
28 lines
759 B
INI
; PlatformIO Project Configuration File
|
|
;
|
|
; Build options: build flags, source filter
|
|
; Upload options: custom upload port, speed and extra flags
|
|
; Library options: dependencies, extra library storages
|
|
; Advanced options: extra scripting
|
|
;
|
|
; Please visit documentation for the other options and examples
|
|
; https://docs.platformio.org/page/projectconf.html
|
|
|
|
[platformio]
|
|
|
|
[env:robotroller_reborn]
|
|
platform = ststm32
|
|
board = genericSTM32F446RE
|
|
framework = arduino
|
|
upload_protocol = stlink
|
|
debug_tool = stlink
|
|
monitor_speed = 19200
|
|
monitor_parity = N
|
|
build_flags =
|
|
-DSTM32F446xx
|
|
-D HAL_CAN_MODULE_ENABLED
|
|
-D SIMPLEFOC_PWM_LOWSIDE_ACTIVE_HIGH
|
|
lib_deps =
|
|
askuric/Simple FOC@^2.3.4
|
|
pazi88/STM32_CAN@^1.1.2
|
|
extra_scripts = pre:gen_compile_commands.py
|