Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vehicle does not move and “link down” problems sitl json and jsbsim #28769

Open
Saleh-At opened this issue Nov 28, 2024 · 2 comments
Open

Comments

@Saleh-At
Copy link

Saleh-At commented Nov 28, 2024

Bug report

I ran software-in-the-loop (SITL) simulation with the -f JSON option, and I sent my data based on the JSON format described in the README file, using My FDM. However, I encountered a “GPS unhealthy” error. To resolve this, I set the ahrs_ekf_type parameter to 10, and the error was fixed.

Despite this, although the pn, pe, and pd values were changing, the vehicle itself did not move in Mission Planner (MP). In the HUD, the values were being updated, but on the map, the vehicle remained stationary, which was puzzling and confusing. And displayed me packet lost too much in the console window.

Now, I want to know if it is possible to send the position vector as LLA (latitude, longitude, altitude) to ArduPilot, and if so, which file needs to be modified to implement this.

My second question is about JSBSim simulation. I followed your documentation precisely, but I repeatedly experienced a “link down” error, with the link disconnecting for about 15 seconds, reconnecting for 2 seconds, and then disconnecting again for another 15–20 seconds. My JSBSim version is 1.2.1, and I tested the latest version (1.2.2) as well, but the issue persisted. but in console window I dont have any delayed and packet lost and this is more confusing 🤒

Both of these simulations were performed on Windows using Cygwin and I don't install FG.
After restart my win 11, at the start in console window => link1 down and did not run jsbsim.exe
I'm SO tired.
Can I run jsbsim.exe individually (like jsbsim team explains) and ardupilot and with fdm_port = 5504 connect together

Version
4.7

Platform
[ ] All
[ ] AntennaTracker
[ * ] Copter
[ * ] Plane
[ ] Rover
[ ] Submarine

Airframe type
Rascal

Hardware type
SITL

Logs

@IamPete1
Copy link
Member

Now, I want to know if it is possible to send the position vector as LLA (latitude, longitude, altitude) to ArduPilot, and if so, which file needs to be modified to implement this.

No, this is not possible. Instead you set the starting location with lat, long and alt the interface then allows positions relative to that starting location.

@Saleh-At
Copy link
Author

Saleh-At commented Nov 30, 2024

@IamPete1 How to convert LLA (lat lon alt) to position (north, east, down) (m) earth frame for JSON

  • Integral of GPS velocities?
  • Convert first point and another point to ECEF or ECI and with different to NED?
  • Or another method with DCM?
    Is there any example by solution for plane or multi rotor in 3d env?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants