How to output corrected yaw to spare motor out

Hi guys,

I would like to output the corrected yaw value on my pixhawk (just before it gets mixed with the pitch and roll to the motors outs) and send this to one of the spare motor outputs. I know you can re-route the rc input to output, but this bypasses the closed loop control.  I want to see the unmixed yaw component.

I'm experimenting with something on my H frame quad, and it would be good to have this output to play with.

Code:

As far I as can see, I would need to modify the code and grab:

_rc_yaw.calc_pwm();

then output this each cycle to the motor outputs??

Could somebody clarify the steps needed to implement this.

Thanks heaps

 

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Activity