Open asjdf opened 2 years ago
I temporarily solved the problem. There is only 2, 3, 4, 6 PWM in esp32_mcu.cpp And only 2, 3, 4 PWM in esp32_ledc_mcu.cpp
So I temporarily delete DCDriver1PWM.cpp
,DCDriver1PWM.cpp
,DCDriverSpeedDir.cpp
and DCDriverSpeedDir.h
Thanks for noting this.
Please note that to use this code at the moment you have to use the dev branch of SimpleFOC library, not the release version.
You are quite right, the 1-PWM mode used by most of the DC driver classes is not yet implemented on ESP32 MCPWM mode. But its implemented in the LEDC driver.
You can try using the dev branch of the SimpleFOC library, with the following option in your platformio.ini:
build_flags = -DSIMPLEFOC_ESP32_USELEDC
Thanks for noting this.
Please note that to use this code at the moment you have to use the dev branch of SimpleFOC library, not the release version.
You are quite right, the 1-PWM mode used by most of the DC driver classes is not yet implemented on ESP32 MCPWM mode.
But its implemented in the LEDC driver.
You can try using the dev branch of the SimpleFOC library, with the following option in your platformio.ini:
build_flags = -DSIMPLEFOC_ESP32_USELEDC
Thanks for your reply and I will try it later.🥰
My board:
ESP32
PlatformIO config:
Part of my code:
Some error report I think is useful: