PX4 / jMAVSim

Simple multirotor simulator with MAVLink protocol support
BSD 3-Clause "New" or "Revised" License
82 stars 207 forks source link

Run JmavSim in HITL Mode #35

Closed anujkumargupta closed 5 years ago

anujkumargupta commented 7 years ago

I am trying to run Jmavsim in HITL mode. I follwed the link https://pixhawk.org/dev/hil/jmavsim and used /dev/ttyACM0(Pixhawk connected through usb(serial)) and /dev/ttyUSB0(Pixhawk connected through radio telemetry(udp)) and as mention in link ttyusbmodem1 but every time it throws serial port exception either port not found or port busy.

Thanks.

dagar commented 7 years ago

Is QGroundControl running?

anujkumargupta commented 7 years ago

Yes its running. I followed the same instructions as mentioned in link in my last comment.

dagar commented 7 years ago

It's probably QGroundControl autoconnecting first. Kill QGroundControl, start jmavsim, then start QGC (if needed).

anujkumargupta commented 7 years ago

Thanks , Now it does not throw that error but its not showing any mavlink messages in terminal. Even its not showing the init mavlink.

dagar commented 7 years ago

What do you get?

screenshot from 2016-09-23 08-18-35

anujkumargupta commented 7 years ago

I got this. screenshot from 2016-09-23 18 06 19

I first started the jmavsim then QGC. Thanks

dagar commented 7 years ago

I don't think I quite follow how you've connected with /dev/ttyUSB0 and the telemetry radio.

Can you try with only the usb connection? /dev/ttyACM0

anujkumargupta commented 7 years ago

Hi , I am trying to do hitl simulation using the snapdragon flight using the command java -Djava.ext.dirs= -cp lib/*:out/production/jmavsim.jar me.drton.jmavsim.Simulator -serial /dev/ttyUSB0 921600 -qgc but facing problem , jmavsim is starging but i didnot get any mavlink msg Do i need to change anything in my command( i am confused about 921600) Thanks

salim616 commented 7 years ago

@DrTon I have tuned my quad on JmavSim and works very weel on Simulation. the problem is when i write the PID parameters on Pixhwak to test flight . the quad behaves weirdly please find the link for the video : https://www.dropbox.com/s/chxxrwyg2n9kuug/video-1487278360.mp4?dl=0

julianoes commented 5 years ago

This seems outdated, closing.