diff --git a/libraries/SITL/SIM_AdNav.cpp b/libraries/SITL/SIM_AdNav.cpp index 06e90dd67f2cf9..54238ff6ba067c 100644 --- a/libraries/SITL/SIM_AdNav.cpp +++ b/libraries/SITL/SIM_AdNav.cpp @@ -231,8 +231,8 @@ void AdNav::send_raw_gnss_pkt(){ raw_gnss.unix_time_seconds = tv.tv_sec; raw_gnss.microseconds = tv.tv_usec; - raw_gnss.position[0] = radians(fdm.longitude); - raw_gnss.position[1] = radians(fdm.latitude); + raw_gnss.position[0] = radians(fdm.latitude); + raw_gnss.position[1] = radians(fdm.longitude); raw_gnss.position[2] = fdm.altitude; raw_gnss.velocity[0] = fdm.speedN; raw_gnss.velocity[1] = fdm.speedE;