From e5af7a1f304657761ee49413d7a9c6dc84cb6992 Mon Sep 17 00:00:00 2001 From: David Vereb Date: Tue, 22 Jun 2021 16:40:39 -0400 Subject: [PATCH] Bugfix for debug info. Some cleanup. --- Track.cpp | 10 +++------- main.cpp | 11 ++++------- 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/Track.cpp b/Track.cpp index fa7f7ff..52a5056 100644 --- a/Track.cpp +++ b/Track.cpp @@ -167,14 +167,10 @@ void draw(const Track &track) // glColor3d(val, val, val); glColor3d(200, 200, 200); - glVertex3f(p.lat,// - track.min.lat, - p.ele,// - track.min.ele, - p.lon);// - track.min.lon); - static bool asdf = true; + glVertex3f(p.lat, + p.ele, + p.lon); } glEnd(); - - // usleep(100000); - glutPostRedisplay(); } diff --git a/main.cpp b/main.cpp index 5e342f6..66d66e5 100644 --- a/main.cpp +++ b/main.cpp @@ -244,11 +244,11 @@ int main(int argc, char *argv[]) << " " << track_group.first.min.lat << "-" << track_group.first.max.lat << std::endl; std::cout << " lon" - << " " << track_group.first.min.lat - << "-" << track_group.first.max.lat << std::endl; + << " " << track_group.first.min.lon + << "-" << track_group.first.max.lon << std::endl; std::cout << " ele" - << " " << track_group.first.min.lat - << "-" << track_group.first.max.lat << std::endl; + << " " << track_group.first.min.ele + << "-" << track_group.first.max.ele << std::endl; } std::cout << std::endl; @@ -299,15 +299,12 @@ int main(int argc, char *argv[]) { track.max.lat -= lat_diff; track.max.lon -= lon_diff; - // track.max.ele -= ele_diff; track.min.lat -= lat_diff; track.min.lon -= lon_diff; - // track.min.ele -= ele_diff; for(auto &p : track.points) { p.lat -= lat_diff; p.lon -= lon_diff; - // p.ele -= ele_diff; p.lat *= 500; p.lon *= 500;