Hello everyone,

         I have seen instructions on setting up HIL using mission planner. In this case, I believe we use code provided by developers. I have successfully tested HIL with FlightGear.

         In case if I have to test my modified ArduPlane code, would I be able to use HIL? I looked for instructions wiki or forum posts to find out "how to make customized code work in HIL mode?". I couldn't find any answer. I have been using ArduPilot Arduino IDE for modifying firmware for my use. Can we modify codes to make it work in HIL or is there any method to do so from Mission Planner?

         If any of you have already done this in the past, please help. I believe it would be handy for many others.

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

Join diydrones

Email me when people reply –

Replies

  • My Problem is getting solved just by adding one line in APM_Config.h as follows

    # define HIL_MODE              HIL_MODE_SENSORS.

    However as suggested in this file, when I deleted "/* and trailing "*/" I got two errors as follows:

    ArduPlane.ino:96:1: error:expected unqualified-id before 'void'

    ArduPlane.ino:96:1: error:unexpected constructor, destructor or type conversion before 'void'

    If someone could explain possible cause of these errors and comment on my original question, that would be helpful.

    Thanks,

    Aak

This reply was deleted.

Activity