Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions geodetic_utils/include/geodetic_utils/geodetic_conv.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ class GeodeticConverter
// Compute ECEF to NED and NED to ECEF matrices
double phiP = atan2(initial_ecef_z_, sqrt(pow(initial_ecef_x_, 2) + pow(initial_ecef_y_, 2)));

ecef_to_ned_matrix_ = nRe(phiP, initial_longitude_);
// ecef_to_ned_matrix_ = nRe(phiP, initial_longitude_);
ecef_to_ned_matrix_ = nRe(initial_latitude_, initial_longitude_);
ned_to_ecef_matrix_ = nRe(initial_latitude_, initial_longitude_).transpose();

haveReference_ = true;
Expand Down Expand Up @@ -226,4 +227,4 @@ class GeodeticConverter
}; // class GeodeticConverter
}; // namespace geodetic_conv

#endif // GEODETIC_CONVERTER_H_
#endif // GEODETIC_CONVERTER_H_