Skip to content

Commit

Permalink
Merge pull request #230 from ut-issl/hotfix/fix_gnss_latitude_bug
Browse files Browse the repository at this point in the history
hotfix: Fix bug in GNSS satellite latitude calculation
  • Loading branch information
ShingoNishimoto authored Nov 19, 2022
2 parents 7dd820c + 9495454 commit 13bbb06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Component/AOCS/GNSSReceiver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ void GNSSReceiver::SetGnssInfo(Vector<3> ant2gnss_i, Quaternion q_i2b, std::stri

double dist = norm(ant2gnss_c);
double lon = AcTan(ant2gnss_c[1], ant2gnss_c[0]);
double lat = AcTan(ant2gnss_c[2], dist);
double lat = AcTan(ant2gnss_c[2], sqrt(pow(ant2gnss_c[0], 2.0) + pow(ant2gnss_c[1], 2.0)));

GnssInfo gnss_info_new = {gnss_id, lat, lon, dist};
vec_gnssinfo_.push_back(gnss_info_new);
Expand Down

0 comments on commit 13bbb06

Please sign in to comment.