Rcout through UserCode.cpp

Hi there,

I’m following the RCOutput.cpp example idea and cannot see my PWM output on channel 5. Basically, what I do is


hal.rcout->write(5, 1050);

in the setup of the UserCode.cpp block,

and in the loop, I am continually just calling the hal.rcout->write(5,1050); function.

I don’t see this value updating in MissionPlanner.

Any ideas what might be the problem? Do I need to configure this channel somehow through MissionPlanner? I thought from the documentation it’s as simple as the steps I am doing.

Try using lua scripting instead of changing the .cpp code. It is simpler and it might work better with mission planner.

1 Like

I have had the same problem, for future reference, you need to call