Writing Servo pwm

hi guys
I wrote this code for write pwm in aux pin0 but I couldn’t see pwm signal in this pin with oscope.

uint16_t pwm = 2000;
void userhook_SuperSlowLoop()
uint8_t _channel=9;
pwm = 3000 - pwm;
hal.rcout->write(_channel-1, pwm);

any idea what i do wrong?

I’m not sure if that’s enough code to make it work and I’m not the best person to answer it.

But my question would be: you have defined USERHOOK_SUPERSLOWLOOP right?

yes I defined USERHOOK_SUPERSLOWLOOP the loop work correctly