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_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.