Calculates azimuth and elevation of a satellite dish based on its longitude, latitude and selected satellite.
Dependencies: PinDetect TextLCD mbed MODGPS
Diff: SatelliteList.h
- Revision:
- 0:fe8decc6a938
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SatelliteList.h Thu Mar 29 09:26:14 2012 +0000 @@ -0,0 +1,22 @@ +#include <fstream> +#include <vector> +#include "Satellite.h" +#include "CircularLinkedList.h" + +class SatelliteList +{ +public: + SatelliteList(char *f, char delimiter); + void display(); + Satellite * getNext(); + Satellite * getPrev(); + Satellite * getCurrent(); +private: + void split(vector<string> & theStringVector, /* Altered/returned value */ + const string & theString, + const char theDelimiter); + + string filename; //name + ifstream sfile; + CircularLinkedList<Satellite> clist; +}; \ No newline at end of file