Page 2 of 2

Re: ESP32 and servo controller/ ninja failed with exit code 1

Posted: Sat Mar 13, 2021 7:50 pm
by BenR
Hi Dirk,

Via C code using the servo controller component might be possible yes.

Try this function out.

FC_CAL_PWM_ChangeFrequency_1(100);

Where _1 is channel 1 and 100 is 100Hz duty.

Re: ESP32 and servo controller/ ninja failed with exit code 1

Posted: Sun Mar 14, 2021 9:01 am
by dvcam99
....mh OK!! Putting that statement in a C Box will come back with a compiler error. It will not compile.

I assume the ESP32 C Box code is may differnt.

BR

Dirk

Re: ESP32 and servo controller/ ninja failed with exit code 1

Posted: Sun Mar 14, 2021 9:20 am
by dvcam99
Hi Ben,

additional feedback. I just tried to open up a second servo controller in order to get at least 16 servo channels.
Then you get a compiler error again.

So is the limit 8 channels??

BR

Dirk

Re: ESP32 and servo controller/ ninja failed with exit code 1

Posted: Sun Mar 14, 2021 10:28 am
by dvcam99
Hello Ben,

I have tested the servo controller further on.

If I assign two servos compiles perfectly like with one servo

If I assign 3 servo channels in the servo controller, complier quits with a error.
ESP32_Test_Servocontroll_3CH.fcfx
(11.65 KiB) Downloaded 544 times
BR

Dirk

Re: ESP32 and servo controller/ ninja failed with exit code 1

Posted: Sun Mar 14, 2021 8:49 pm
by BenR
Hi Dirk,

The servo count is limited to 8 channels at the moment but in theory we could get this up to 12 on the ESP32 hardware. Let me know if this would be useful.

I tried to replicate the problem with 3 channels but it compiled correctly for me. Please can you attach the msg.txt file from the failed compilation and I'll have a look at what caused your error.

Adding the C code to set the freuency to 100Hz also worked ok for me. I've attached your current program with the c code in place to make channel 1 100Hz. Note that channels 1 and 2 share a timer and hence will probably always run at the same rate. Same goes for channels 2 and 3 etc.
ESP32_Test_Servocontroll_3CH.fcfx
(11.87 KiB) Downloaded 570 times

Re: ESP32 and servo controller/ ninja failed with exit code 1

Posted: Sun Mar 14, 2021 9:13 pm
by dvcam99
Hi Ben,

attached the message file from compiler:
ESP32_Test_Servocontroll_3CH.msg.txt
(14.27 KiB) Downloaded 609 times
Yes 12 Servo channel would be perfect and great.

I`ll check your modified file. I´ll come back with a feedback.

BR

Dirk

Re: ESP32 and servo controller/ ninja failed with exit code 1

Posted: Sun Mar 14, 2021 9:24 pm
by dvcam99
Hi Ben,

your modified FC9 file with the 100Hz C-Box comes with a compiler error too at my installation.

Attached the message file:
ESP32_Test_Servocontroll_3CH.msg.txt
(157.03 KiB) Downloaded 642 times

Very strange that it runs at your side. May some wrong compiler settings at my installation??

BR

Dirk

Re: ESP32 and servo controller/ ninja failed with exit code 1

Posted: Mon Mar 15, 2021 4:47 pm
by dvcam99
Hello Ben,

Hello Matrix Team,

with the latest FC9 Update from today it now compiles with more then 2 servos assigned in the controller.

The C-code for different frame rates compiles OK too.

Many thanks!!

Dirk

Re: ESP32 and servo controller/ ninja failed with exit code 1

Posted: Fri Dec 02, 2022 6:20 pm
by dvcam99
Hello Ben,

today I like to come back the the possibilty of 12 Servos outputs with ESP32. Do you have any news on this topic.

BR

Dirk