Telescope Control Library

Dependents:   PushToGo-F429

LocationProvider.h

Committer:
caoyu@caoyuan9642-desktop.MIT.EDU
Date:
2018-09-24
Revision:
19:fd854309cb4c
Parent:
10:e356188d208e

File content as of revision 19:fd854309cb4c:

#ifndef LOCATION_PROVIDER_H
#define LOCATION_PROVIDER_H

class LocationProvider;

#include "CelestialMath.h"
/**
 * Provides location information. Can be overriden if a GPS is installed for example.
 */
class LocationProvider {
public:
	LocationProvider() {
	}
	virtual ~LocationProvider() {
	}

	virtual double getLongtitude() const;

	virtual double getLatitude() const;

	LocationCoordinates getLocation() const {
		return LocationCoordinates(getLatitude(), getLongtitude());
	}
};



#endif