00001 /* 00002 * Guide.h 00003 * Copyright (C) Eduardo Wiputra 2009 <ewiputra@users.sourceforge.net> 00004 * 00005 * Guide.h is free software: you can redistribute it and/or modify it 00006 * under the terms of the GNU General Public License as published by the 00007 * Free Software Foundation, either version 3 of the License, or 00008 * (at your option) any later version. 00009 * 00010 * Guide.h is distributed in the hope that it will be useful, but 00011 * WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00013 * See the GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License along 00016 * with this program. If not, see <http://www.gnu.org/licenses/>. 00017 */ 00018 00019 #ifndef Guide_H 00020 #define Guide_H 00021 00022 #include <fstream> 00023 #include <string> 00024 #include <vector> 00025 #include "uvsim/guidance/FlightPlan.h" 00026 #include "uvsim/guidance/GeoCoord.h" 00027 00028 namespace uvsim 00029 { 00035 class Guide 00036 { 00037 public: 00041 Guide(); 00047 Guide(GeoCoord & pos); 00051 ~Guide(); 00056 FlightPlan* getFlightPlan(); 00061 void computeCrossTrack(); 00066 void setPosition(GeoCoord & pos); 00067 private: 00071 FlightPlan flightplan; 00075 GeoCoord m_currentPosition; 00076 }; 00077 } 00078 00079 00080 #endif 00081 00082 // vim:ts=2:sw=2