Skip to content

Commit

Permalink
SITL: Fixed ordering of Lat/Long
Browse files Browse the repository at this point in the history
  • Loading branch information
AN-DanielCook committed Nov 10, 2023
1 parent ff75167 commit c408e09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/SITL/SIM_AdNav.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c408e09

Please sign in to comment.