Open pxfdale opened 5 years ago
Hi, Very interesting. It looks like the problem comes from the UDP connection. Do you have the same port (5502) and IP address (127.0.0.1 or localhost) in SerialToUDP.config. I never tried FlightGear 2018.3.2 on Windows, only 3.4.0. You can try with FlightGear 3.4.0.
Also, this setup with the serial port is a bit outdated and we are using the MAVLink connection instead. The quad can be displayed in this version of jMAVSim. You can clone the repository and install it. You can then start it (before starting QGC) with the flags -disponly -qgc
. You can also use the flag -h
to display the help.
Best,
Romain
Thanks a lot for your help, I will follow your suggestions and have a try!
---Original--- From: "romain-chiap"notifications@github.com Date: Wed, Jul 10, 2019 20:27 PM To: "romain-chiap/PX4_SIH_QuadX"PX4_SIH_QuadX@noreply.github.com; Cc: "Author"author@noreply.github.com;"pxfdale"812233825@qq.com; Subject: Re: [romain-chiap/PX4_SIH_QuadX] Display SIH in FlightGear (#1)
Hi, Very interesting. It looks like the problem comes from the UDP connection. Do you have the same port (5502) and IP address (127.0.0.1 or localhost) in SerialToUDP.config. I never tried FlightGear 2018.3.2 on Windows, only 3.4.0. You can try with FlightGear 3.4.0.
Also, this setup with the serial port is a bit outdated and we are using the MAVLink connection instead. The quad can be displayed in this version of jMAVSim. You can clone the repository and install it. You can then start it (before starting QGC) with the flags -disponly -qgc. You can also use the flag -h to display the help.
Best,
Romain
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
Hi, Very interesting. It looks like the problem comes from the UDP connection. Do you have the same port (5502) and IP address (127.0.0.1 or localhost) in SerialToUDP.config. I never tried FlightGear 2018.3.2 on Windows, only 3.4.0. You can try with FlightGear 3.4.0.
Also, this setup with the serial port is a bit outdated and we are using the MAVLink connection instead. The quad can be displayed in this version of jMAVSim. You can clone the repository and install it. You can then start it (before starting QGC) with the flags
-disponly -qgc
. You can also use the flag-h
to display the help.Best,
Romain
Thanks for you suggestions, and I have followed them to install jMAVSim. After installation, do you mean that I just need to : (1) cd /jMAVSim/out/production (2) "java -Djava.ext.dirs= -jar jmavsim_run.jar -disponly -qgc" (3) open the QGroundControl I did this but they do not connect... Or do I also need to follow the instructions of HIL? I am sorry that I am poor in connecting with two things...
For me, to compile it is
ant
then run
java -cp lib/*;out/production/jmavsim.jar me.drton.jmavsim.Simulator -disponly -qgc
Does the quad moves in jMAVSim at least?
check that too.
For me, to compile it is
ant
then runjava -cp lib/*;out/production/jmavsim.jar me.drton.jmavsim.Simulator -disponly -qgc
Does the quad moves in jMAVSim at least?
check that too.
Very sorry to disturb you again...
The situation seemed to be similar to that before: The jMAVSim only runs independently.( no "init MAVLink in the lower right corner of jMAVSim window" )
And it turns out that the aircraft runs in QGC but does not move in jMAVSim.
I checked the https://github.com/romain-chiap/jMAVSim#serial-port, and changed the SerialPath to "/dev/ttyACM0", changed the Baudrate to "57600", but it still did not work.
Do you think there is somewhere that I may missed or I need to check?
Hi,
You should try the -debug flag too, and keep the baudrate to the default value (230400).
If you are using Linux it should be
java -cp lib/\*:out/production/jmavsim.jar me.drton.jmavsim.Simulator -debug -disponly -qgc
and make sure QGC is closed when you do that
Hi,
You should try the -debug flag too, and keep the baudrate to the default value (230400). If you are using Linux it should be
java -cp lib/\*:out/production/jmavsim.jar me.drton.jmavsim.Simulator -debug -disponly -qgc
Thanks a lot for your replying. Firstly, I make sure that QGC is closed when I do that; Then, I keep the baudrate to the default value (230400) and use the command you gave, the result is as follows:
However, after I ran QGC, nothing changed... What can I do with the info in the command window?
Hi, big masters! I cannot followed the steps in the https://github.com/romain-chiap/PX4_SIH_QuadX/wiki/Setting-up-the-Coriolis-SIH, but they seemed to be not connected successfully... (The quadrotor showed in FlightGear. The serial port has output. However, when the plane moves in QGC, it did not move in FlightGear.) I beg for your help!
FlightGear: java -jar SerialToUDP.jar -v QGroundControl: