LibrePilot Forum

General Category => General Discussion => Topic started by: naveenbabub on September 17, 2019, 12:08:00 pm

Title: libprePilot simulator flight test
Post by: naveenbabub on September 17, 2019, 12:08:00 pm
hi,

without connecting the drone can we run the simulator and control it thru frsky controller /keyboard connecting  by python code
Title: Re: libprePilot simulator flight test
Post by: TheOtherCliff on September 19, 2019, 06:40:39 pm
It is my understanding that this is done by some developers when testing new flight mode code.  In some modes it uses a joystick or you can use your transmitter if you have a buddybox USB dongle that works with it.

Search the forum for "flightgear" and for "flight gear" and for "simulator".

LibrePilot also supports some other simulators (May be broken.  May require specific simulator versions.)
Quote
cliff@i925 ~/dev/librepilot/1609 $ find ground/gcs/src/plugins/hitl -iname '*sim*.cpp'
ground/gcs/src/plugins/hitl/xplanesimulator10.cpp
ground/gcs/src/plugins/hitl/xplanesimulator9.cpp
ground/gcs/src/plugins/hitl/simulator.cpp
ground/gcs/src/plugins/hitl/il2simulator.cpp
ground/gcs/src/plugins/hitl/fgsimulator.cpp
ground/gcs/src/plugins/hitl/aerosimrcsimulator.cpp
Title: Re: libprePilot simulator flight test
Post by: naveenbabub on September 25, 2019, 05:36:54 am
thanks for detials .will go thru it
Title: Re: libprePilot simulator flight test
Post by: naveenbabub on September 25, 2019, 01:56:51 pm
Installed flightgear  and librePilot GCS  in windows system.  Under HITL simulation  for FlightGear  selected localhost   ( 127.0.0.1 ) and port ( 9009)  and Remote Host ( 127.0.0.1) and port( 9010) and  Path Executable (fgfs.exe) and Data directory selected from flightgear installed location. In HITL tab selected  FlightGear HITL and  clicked on  start .   Getting successful bound to ip address but getting Error:  Process failed to start : No such file or directory.  If we run manually flight gear selecting the port 9009 and tried to connect from HITL start getting FlightGear connected but crashes in minute .

If similar process tried with AeroSimRC then  success coming but not launching the simulator.  If we manually do not able to AerosimRC . is there any place  ip and port settings is there.