Writing code for running in simulation

I've written some code for ardupilot recently, and before I try it on my aircraft (and potentially crash it), I was hoping to run it in the simulation using X-Plane.  I enabled the HIL_MODE_ATTITUDE in the APM code and got the simulation running fine, but my custom commands aren't being recognized.

In the real world, I'm writing to the servos using the APM_RC.OutputCh() method, and that works fine, but I seem to be bypassing the simulation code by doing this.  Is there another method that I can use for when I'm running a simulation?

Thanks!

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

Join diydrones

Email me when people reply –