Does anyone have experience with running FlightGear as a HIL simulator for ArduCopter?
FlightGear launches and I see the quad on the runway, but when I use my radio to arm the motors and take off, nothing happens.
Thanks for your time.
Does anyone have experience with running FlightGear as a HIL simulator for ArduCopter?
FlightGear launches and I see the quad on the runway, but when I use my radio to arm the motors and take off, nothing happens.
Thanks for your time.
You need to be a member of diydrones to add comments!
Replies
Has anyone been able to successfully use HIL simulation with FlightGear recently? My attempt today (following the instructions on the wiki) failed, and it appeared that there was a communication problem between the mission planner and FG. The planner showed values being sent to the motors corresponding to my inputs, but FG did not seem to be receiving them. I don't know enough about FlightGear to troubleshoot this effectively, and it seems like many others have had problems as well.
So before I dig any deeper into it, I'd really like to have confirmation that it even works at all.
OK! If anyone else has issues with this here is the solution.
1. Don't forget to click "Sim Link Start/Stop"
2. Make sure that your config file or firmware is for quad in the + configuration
3. Lower your P gains
And it works!
Ok. I was able to get the throttle channel working. Now pitch doesn't work at all and the yaw creates a really large oscillation.
I should mention that I added #define HIL_MODE HIL_MODE_ATTITUDE to the config file.