+#include <simgear/compiler.h>
#include <simgear/constants.h>
+
+#include STL_IOSTREAM
+
#include "waypoint.hxx"
+SG_USING_STD(cout);
+SG_USING_STD(endl);
+
int main() {
SGWayPoint a1(-93.216923, 44.880547, 0.0, SGWayPoint::WGS84, "KMSP");
SGWayPoint a2(-93.216923, 44.880547, 0.0, SGWayPoint::SPHERICAL, "KMSP");
a1.CourseAndDistance( cur_lon, cur_lat, cur_alt, &course, &distance );
cout << "Course to " << a1.get_id() << " is " << course << endl;
- cout << "Distance to " << a1.get_id() << " is " << distance * METER_TO_NM
+ cout << "Distance to " << a1.get_id() << " is " << distance * SG_METER_TO_NM
<< endl;
a2.CourseAndDistance( cur_lon, cur_lat, cur_alt, &course, &distance );
cout << "Course to " << a2.get_id() << " is " << course << endl;
- cout << "Distance to " << a2.get_id() << " is " << distance * METER_TO_NM
+ cout << "Distance to " << a2.get_id() << " is " << distance * SG_METER_TO_NM
<< endl;
cout << endl;
b1.CourseAndDistance( cur_lon, cur_lat, cur_alt, &course, &distance );
cout << "Course to " << b1.get_id() << " is " << course << endl;
- cout << "Distance to " << b1.get_id() << " is " << distance * METER_TO_NM
+ cout << "Distance to " << b1.get_id() << " is " << distance * SG_METER_TO_NM
<< endl;
b2.CourseAndDistance( cur_lon, cur_lat, cur_alt, &course, &distance );
cout << "Course to " << b2.get_id() << " is " << course << endl;
- cout << "Distance to " << b2.get_id() << " is " << distance * METER_TO_NM
+ cout << "Distance to " << b2.get_id() << " is " << distance * SG_METER_TO_NM
<< endl;
cout << endl;