00001 // -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: t -*- 00002 // 00003 // Hardware in the loop gps class. 00004 // Code by James Goppert 00005 // 00006 // This library is free software; you can redistribute it and / or 00007 // modify it under the terms of the GNU Lesser General Public 00008 // License as published by the Free Software Foundation; either 00009 // version 2.1 of the License, or (at your option) any later version. 00010 // 00011 // 00012 #ifndef AP_GPS_HIL_h 00013 #define AP_GPS_HIL_h 00014 00015 #include <GPS.h> 00016 00017 class AP_GPS_HIL : public GPS { 00018 public: 00019 AP_GPS_HIL(Stream *s); 00020 virtual void init(void); 00021 virtual bool read(void); 00022 00033 void setHIL(long time, float latitude, float longitude, float altitude, 00034 float ground_speed, float ground_course, float speed_3d, uint8_t num_sats); 00035 00036 private: 00037 bool _updated; 00038 }; 00039 00040 #endif // AP_GPS_HIL_H