Bugfix for debug info. Some cleanup.
This commit is contained in:
parent
ee44dfde4d
commit
e5af7a1f30
10
Track.cpp
10
Track.cpp
@ -167,14 +167,10 @@ void draw(const Track &track)
|
|||||||
// glColor3d(val, val, val);
|
// glColor3d(val, val, val);
|
||||||
|
|
||||||
glColor3d(200, 200, 200);
|
glColor3d(200, 200, 200);
|
||||||
glVertex3f(p.lat,// - track.min.lat,
|
glVertex3f(p.lat,
|
||||||
p.ele,// - track.min.ele,
|
p.ele,
|
||||||
p.lon);// - track.min.lon);
|
p.lon);
|
||||||
static bool asdf = true;
|
|
||||||
}
|
}
|
||||||
glEnd();
|
glEnd();
|
||||||
|
|
||||||
// usleep(100000);
|
|
||||||
|
|
||||||
glutPostRedisplay();
|
glutPostRedisplay();
|
||||||
}
|
}
|
||||||
|
11
main.cpp
11
main.cpp
@ -244,11 +244,11 @@ int main(int argc, char *argv[])
|
|||||||
<< " " << track_group.first.min.lat
|
<< " " << track_group.first.min.lat
|
||||||
<< "-" << track_group.first.max.lat << std::endl;
|
<< "-" << track_group.first.max.lat << std::endl;
|
||||||
std::cout << " lon"
|
std::cout << " lon"
|
||||||
<< " " << track_group.first.min.lat
|
<< " " << track_group.first.min.lon
|
||||||
<< "-" << track_group.first.max.lat << std::endl;
|
<< "-" << track_group.first.max.lon << std::endl;
|
||||||
std::cout << " ele"
|
std::cout << " ele"
|
||||||
<< " " << track_group.first.min.lat
|
<< " " << track_group.first.min.ele
|
||||||
<< "-" << track_group.first.max.lat << std::endl;
|
<< "-" << track_group.first.max.ele << std::endl;
|
||||||
}
|
}
|
||||||
std::cout << std::endl;
|
std::cout << std::endl;
|
||||||
|
|
||||||
@ -299,15 +299,12 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
track.max.lat -= lat_diff;
|
track.max.lat -= lat_diff;
|
||||||
track.max.lon -= lon_diff;
|
track.max.lon -= lon_diff;
|
||||||
// track.max.ele -= ele_diff;
|
|
||||||
track.min.lat -= lat_diff;
|
track.min.lat -= lat_diff;
|
||||||
track.min.lon -= lon_diff;
|
track.min.lon -= lon_diff;
|
||||||
// track.min.ele -= ele_diff;
|
|
||||||
for(auto &p : track.points)
|
for(auto &p : track.points)
|
||||||
{
|
{
|
||||||
p.lat -= lat_diff;
|
p.lat -= lat_diff;
|
||||||
p.lon -= lon_diff;
|
p.lon -= lon_diff;
|
||||||
// p.ele -= ele_diff;
|
|
||||||
|
|
||||||
p.lat *= 500;
|
p.lat *= 500;
|
||||||
p.lon *= 500;
|
p.lon *= 500;
|
||||||
|
Loading…
Reference in New Issue
Block a user