Skip to content

Commit

Permalink
[In progress] modifying gps utils
Browse files Browse the repository at this point in the history
  • Loading branch information
artzha committed Nov 15, 2024
1 parent 08ca139 commit 4b51857
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions math/gps_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ struct GPSTranslator {
return true;
}

void SetOrigin(double latitude, double longitude, double orientation) {
gps_origin_latitude = latitude;
gps_origin_longitude = longitude;
map_orientation = orientation;
}

Vector2d GPSToMetric(const double latitude, const double longitude) {
const double theta = DegToRad(latitude);
const double c = std::cos(theta);
Expand Down

0 comments on commit 4b51857

Please sign in to comment.