Having problem with controlling servo by matlab toolbox

Hi. Recently, I’m using Simulink Embeded coder to make a controller for my coax copter,
and I have problem with controlling servo motor.
When I put PWM value to servo motor, it cannot maintain it’s position. Just ‘bzzzzzzz’ sound comes out from it. There are no problem with board and servo. PWM value is 1500, and my board if Pixhawk Cube.
Additionally, how can i calibrate my ESC without QGC? It seems to QGC and Simulink support are not compatibled.

Hi, Lee
Have you found any solution for this? I’m encountering the same problem.
Thank you in advance,
Khalil

It was problem of output frequency. frequency of servo output must be 50 Hz.