Skip to content

Commit 4b51857

Browse files
committed
[In progress] modifying gps utils
1 parent 08ca139 commit 4b51857

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

math/gps_util.h

+6
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ struct GPSTranslator {
5757
return true;
5858
}
5959

60+
void SetOrigin(double latitude, double longitude, double orientation) {
61+
gps_origin_latitude = latitude;
62+
gps_origin_longitude = longitude;
63+
map_orientation = orientation;
64+
}
65+
6066
Vector2d GPSToMetric(const double latitude, const double longitude) {
6167
const double theta = DegToRad(latitude);
6268
const double c = std::cos(theta);

0 commit comments

Comments
 (0)