Hi, im using Ardupilot SITL in Linux with JSBsim and it works great expect for one thing.
I want GPS at a rate of 5 Hz and have set SIM_GPS_HZ = 5, but im not receiving gps_raw messages at 5Hz when looking through the logged data. Its not systematic, but every now and then a sample is missing and in the worst case there is 2 seconds between each sample. To me it seems like there is some kind of loss data, but SIM_GPS_BYTELOSS = 0. I’ve modified runpysim.py to output the data from JSBsim and im getting data well over 5 Hz. Is this intentional? Is there some parameter that sets the loss rate of GPS data other than SIM_GPS_BYTELOSS?
Below are the complete GPS parameters Im using
SIM_GPS_BYTELOSS = 0
SIM_GPS_DELAY = 0
SIM_GPS_DISABLE = 0
SIM_GPS_GLITCH_X = 0
SIM_GPS_GLITCH_Y = 0
SIM_GPS_GLITCH_Z =0
SIM_GPS_HZ = 5
SIM_GPS_NUM_SATS = 10
SIM_GPS_TYPE = 1
Bjørn