Hi All,
We have done Arducopter HIL setup done on Windows 7 (64 bit) machine using FlightGear Hardware-in-the-Loop Simulation Setup.
Current Problem: Motors are not getting armed in the flightgear simulator. Nothing happens when trying to fly the copter in predefined mission in autonomous mode. Seems connection problem between mission planner and flightgear.
Software Installed for the setup:
Connection Steps:- Start Mission Planner 1.3.17.
- Connect over COM.
- Click “CONNECT”.
- Click “Simulation”.
- Click “Flightgear” radio box.
- Click “Quad” check box.
- Click “Start FG Quad”.
- Wait for Flightgear to finish loading.
- Click “Sim Link Start/Stop”.
- Loaded waypoints for planned mission, having takeoff as first command
- Set mode to Guided.
- Arming Successful in MP but could not see motors moving in Flightgear.
- Switch mode to Auto
- click on start mission – Nothing happens
Alternative Approach Tried:Also tried to start flightgear from command line.
- Start Mission Planner 1.3.17
- Connect over COM.
- Click “CONNECT”.
- Loaded waypoints for planned mission, having takeoff as first command
- From Command line start Flightgear by going into fgfs.exe path:
fgfs --fg-root="C:\Program Files\FlightGear\data" --fg=scenery="C:\ProgramFiles\FlightGear\data\Scenery" --geometry=800x600 --aircraft=arducopter --native-fdm=socket,out,50,127.0.0.1,49005,udp --generic=socket,in,50,127.0.0.1,49000,udp,quadhil --fdm=external --prop:/logging/log/filename=fg_record.csv --log-level=info --roll=0 --pitch=0 --wind=0@0 --turbulence=0.0 --prop:/sim/frame-rate-throttle-hz=30 --timeofday=noon --shading-
flat --fog-disable --disable-specular-highlight --disable-skyblend --disable-random-objects --disable-panel --disable-horizon-effect --disable-clouds –disable-anti-alias-hud
- Set mode to Guided.
- Arming Successful in MP but could not see motors moving in Flightgear.
- Switch mode to Auto
- click on start mission – Nothing happens
Please suggest if we are missing something in the HITL Setup steps.
Thanks and Regards,
Saloni Jain