Two aircrafts displayed on MAVProxy map using SITL

Hello,

i´m doing SITL Simulation with Matlab and MAVProxy. On the map are two aircrafts displayed. One is white and the other is red. Can someone explain why there are two aircrafts displayed? I´m guessing these might be two different position estimators but i don’t now. I also notice quite a difference between the displayed aircrafts.


I´ve set AHRS_EKF_TYPE to 10 because i had GPS glitches.

Thank you in advance for all answers!

hello,

Red is AHRS position, so as you are using AHRS_EKF_TYPE 10 is the true sim position.
Blue is GPS position

I´m calculating the position in Matlab (force -> acceleration -> velocity -> position) and send it via the JSON format to the firmware. How and with which values is the GPS calculation done inside the firmware?