Telescope Control Library
LocationProvider.h
- Committer:
- caoyu@caoyuan9642-desktop.MIT.EDU
- Date:
- 2018-09-10
- Revision:
- 9:d0413a9b1386
- Parent:
- 0:6cb2eaf8b133
- Child:
- 10:e356188d208e
File content as of revision 9:d0413a9b1386:
#ifndef LOCATION_PROVIDER_H #define LOCATION_PROVIDER_H #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 { return TelescopeConfiguration::getDouble("longtitude"); } virtual double getLatitude() const { return TelescopeConfiguration::getDouble("latitude"); } LocationCoordinates getLocation() const { return LocationCoordinates(getLatitude(), getLongtitude()); } }; #endif