Hello together,
it seems to me that the servo controller component is not compatible with ESP32.
Compiling faild with the following message:
ninja failed with exit code 1
Attached the FC programm.
BR
Dirk
ESP32 and servo controller/ ninja failed with exit code 1
-
- Posts: 94
- http://meble-kuchenne.info.pl
- Joined: Fri Dec 04, 2020 11:03 am
- Has thanked: 6 times
- Been thanked: 12 times
ESP32 and servo controller/ ninja failed with exit code 1
Happy FC9, FC-8 and FC-6 professional user
-
- Matrix Staff
- Posts: 1895
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 491 times
- Been thanked: 664 times
Re: ESP32 and servo controller/ ninja failed with exit code 1
Hi Dirk,
Thanks for letting us know. I'll investigate and see if I can get this resolved for you.
Thanks for letting us know. I'll investigate and see if I can get this resolved for you.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Matrix Staff
- Posts: 1895
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 491 times
- Been thanked: 664 times
Re: ESP32 and servo controller/ ninja failed with exit code 1
Hello Dirk,
Sorry for the delay the Servo motor component should now be supported by the ESP32 hardware. The only thing currently not supoorted is the AutoMove functions. The SetPosition and MoveToPosition macros should work correctly.
Please let me know if you have any problems.
Sorry for the delay the Servo motor component should now be supported by the ESP32 hardware. The only thing currently not supoorted is the AutoMove functions. The SetPosition and MoveToPosition macros should work correctly.
Please let me know if you have any problems.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Re: ESP32 and servo controller/ ninja failed with exit code 1
Hello Ben,
just checked the attached FC9 file with serco controller. Unfortunately it give still a complier error.
cc1.exe: some warnings being treated as errors
ninja: build stopped: subcommand failed.
Executing action: all (aliases: build)
Running ninja in directory h:\esp32\esp32_test3_1\build
Executing "ninja all"...
ninja failed with exit code 1
Build Failed
.
Autoclose turned off
FINISHED
just checked the attached FC9 file with serco controller. Unfortunately it give still a complier error.
cc1.exe: some warnings being treated as errors
ninja: build stopped: subcommand failed.
Executing action: all (aliases: build)
Running ninja in directory h:\esp32\esp32_test3_1\build
Executing "ninja all"...
ninja failed with exit code 1
Build Failed
.
Autoclose turned off
FINISHED
Happy FC9, FC-8 and FC-6 professional user
-
- Matrix Staff
- Posts: 1895
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 491 times
- Been thanked: 664 times
Re: ESP32 and servo controller/ ninja failed with exit code 1
Hello,
Many thanks for letting me know. I have replicated the problem you're having and have fixed it in the latest component. The problem was caused by only having a single servo channel enabled and it seems I had only tested with all 8 enabled. It should work as expected for you now.
I would also move the SetPosition call from inside the loop, to just before the loop in your program as updating the position in such a tight loop might cause you problems.
Many thanks for letting me know. I have replicated the problem you're having and have fixed it in the latest component. The problem was caused by only having a single servo channel enabled and it seems I had only tested with all 8 enabled. It should work as expected for you now.
I would also move the SetPosition call from inside the loop, to just before the loop in your program as updating the position in such a tight loop might cause you problems.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Re: ESP32 and servo controller/ ninja failed with exit code 1
Hi Ben,
many thanks for the super fast fix!! Works great.
Scope shot below:
Additional question!! Is there a way to edit the frame rate. Now it is fixed at 20ms (50Hz). Cool would be 15ms and 10ms (75Hz and 100Hz) too.
BR
Dirk
many thanks for the super fast fix!! Works great.
Scope shot below:
Additional question!! Is there a way to edit the frame rate. Now it is fixed at 20ms (50Hz). Cool would be 15ms and 10ms (75Hz and 100Hz) too.
BR
Dirk
Happy FC9, FC-8 and FC-6 professional user
-
- Matrix Staff
- Posts: 1895
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 491 times
- Been thanked: 664 times
Re: ESP32 and servo controller/ ninja failed with exit code 1
Hi Dirk,
Brilliant glad it's working for you the servo controller component is currently fixed to 50hz but the pwm component should allow you to easily do this.
Brilliant glad it's working for you the servo controller component is currently fixed to 50hz but the pwm component should allow you to easily do this.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Re: ESP32 and servo controller/ ninja failed with exit code 1
Hi Ben,
what do you mean with pwm component in order to change the frame rate fromm 50 to 100Hz
Should I use the PWM component instead of the servo controller component?? Is this your suggestion??
May is it possible to change the frame rate via a C-code??
BR
Dirk
what do you mean with pwm component in order to change the frame rate fromm 50 to 100Hz
Should I use the PWM component instead of the servo controller component?? Is this your suggestion??
May is it possible to change the frame rate via a C-code??
BR
Dirk
Happy FC9, FC-8 and FC-6 professional user