v1: Live ADS-B radar with detail panel, units, legend, proximity LED alert
This commit is contained in:
23
src/location_manager.h
Normal file
23
src/location_manager.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
#include <Arduino.h>
|
||||
|
||||
namespace LocationManager {
|
||||
|
||||
enum class Source { GpsFix, IpGeolocation, Manual, Persisted, None };
|
||||
|
||||
void init();
|
||||
void update();
|
||||
void requestIpLookupIfNeeded();
|
||||
void getHomeLocation(double& lat, double& lon);
|
||||
|
||||
Source currentSource();
|
||||
void setManualLocation(double lat, double lon);
|
||||
void setGpsEnabled(bool enabled);
|
||||
bool isGpsEnabled();
|
||||
|
||||
void cycleGpsPinPair();
|
||||
const char* currentGpsPinLabel();
|
||||
|
||||
bool hasGpsFix();
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user