Auterion / px4-jsbsim-bridge

JSBSim bridge for PX4 SITL/HITL simulations
BSD 3-Clause "New" or "Revised" License
26 stars 38 forks source link

HITL, No GPS Lock for Vehicle over serial #61

Closed ParamDeshpande closed 1 year ago

ParamDeshpande commented 1 year ago

I have followed the instructions from this PR to enable HITL support for JSB-Sim bridge and am able to connect to the JSBSim-bridge via serial port. I am facing the following issue in HITL mode. No GPS Lock for Vehicle :

Screenshot from 2022-11-03 18-30-16

I have selected the airplane configuration as HILStar (XPlane), on the cubepilot cubeorange ADSB module. I am using the PX4-Autopilot version 1.12.3.

Any suggestions ?

ParamDeshpande commented 1 year ago

I've solved this issue, the GPS lock can be enabled by setting interface->SetHILStateLevel(false); in the file jsbsim_bridge.cpp from this PR

Jaeyoung-Lim commented 1 year ago

@ParamDeshpande Great! Would it be possible to make a PR on the branch?

ParamDeshpande commented 1 year ago

@Jaeyoung-Lim Sure, I've created the PR on the HIL branch.