CAT & Doppler correction

pull/3/head
dl2alf 2021-12-27 16:38:17 +01:00
commit 8a6f8748e5
4 zmienionych plików z 23 dodań i 38 usunięć

Wyświetl plik

@ -959,9 +959,9 @@ namespace AirScout
*/
// check for last saved stations not in database and revert to at least DL2ALF and GB3MHZ if necessary
// first check for saved stations
string mycall = GetPropertyDefaultValue(nameof(Properties.Settings.Default.MyCall));
double mylat = GetPropertyDefaultValue(nameof(Properties.Settings.Default.MyLat));
double mylon = GetPropertyDefaultValue(nameof(Properties.Settings.Default.MyLon));
string mycall = Properties.Settings.Default.MyCall;
double mylat = Properties.Settings.Default.MyLat;
double mylon = Properties.Settings.Default.MyLon;
string myloc = MaidenheadLocator.LocFromLatLon(mylat, mylon, Properties.Settings.Default.Locator_SmallLettersForSubsquares, 3);
LocationDesignator ld = StationData.Database.LocationFind(mycall, myloc);
if (ld == null)
@ -975,9 +975,9 @@ namespace AirScout
Properties.Settings.Default.MyLat = mylat;
Properties.Settings.Default.MyLon = mylon;
}
string dxcall = GetPropertyDefaultValue(nameof(Properties.Settings.Default.DXCall));
double dxlat = GetPropertyDefaultValue(nameof(Properties.Settings.Default.DXLat));
double dxlon = GetPropertyDefaultValue(nameof(Properties.Settings.Default.DXLon));
string dxcall = Properties.Settings.Default.DXCall;
double dxlat = Properties.Settings.Default.DXLat;
double dxlon = Properties.Settings.Default.DXLon;
string dxloc = MaidenheadLocator.LocFromLatLon(dxlat, dxlon, Properties.Settings.Default.Locator_SmallLettersForSubsquares, 3);
ld = StationData.Database.LocationFind(dxcall, dxloc);
if (ld == null)

Wyświetl plik

@ -5,7 +5,12 @@
- Feature: new OpenTopoMap provider, not really suitable for surpervising aircraft travel but has very nice contour levels (based on SRTM)
- Feature: adjust main map opacity via "Options/Map" which is helpful in case map colors are very prominent
2020-xx-xx: V1.3.3.3
2020-04-25: V1.3.3.4
====================
- Bugfix: AirScout always reverts to default call signs (DL2ALF <> GB3MHZ) when area of interest is set outside Europe --> fixed (tnx VK3VG)
2020-04-21: V1.3.3.3
====================
- Feature: export current path to CSV, feature was removed during change to V1.3.x

Wyświetl plik

@ -48,6 +48,17 @@ namespace AirScout
dgv_Watchlist_Callsigns.DataSource = null;
foreach (LocationDesignator ld in AllLocations)
{
if (Properties.Settings.Default.Location_RestrictToAreaOfInterest)
{
if (ld.Lat < Properties.Settings.Default.MinLat)
continue;
if (ld.Lat > Properties.Settings.Default.MaxLat)
continue;
if (ld.Lon < Properties.Settings.Default.MinLon)
continue;
if (ld.Lon > Properties.Settings.Default.MaxLon)
continue;
}
DataRow row = AllCallsigns.NewRow();
row[0] = ld.Call;
row[1] = ld.Loc;

Wyświetl plik

@ -386,37 +386,6 @@ namespace ScoutBase.Stations
// set status to updating
StationData.Database.SetDBStatus(DATABASESTATUS.UPDATING);
this.ReportProgress(1, StationData.Database.GetDBStatus());
if (StartOptions.RestrictToAreaOfInterest)
{
this.ReportProgress(0, "Removing callsigns otside are of interest...");
if (HasDatabaseChanged())
{
// database changed --> do full check
List<LocationDesignator> locations = StationData.Database.LocationGetAll(this);
foreach (LocationDesignator ld in locations)
{
if ((ld.Lat < StartOptions.MinLat) || (ld.Lat > StartOptions.MaxLat) || (ld.Lon < StartOptions.MinLon) || (ld.Lon > StartOptions.MaxLon))
{
// remove from location database & QRV database
StationData.Database.LocationDelete(ld);
StationData.Database.QRVDelete(ld.Call, ld.Loc, BAND.BALL);
}
if (this.CancellationPending)
return;
// reduce CPU load
Thread.Sleep(1);
}
// save status & timestamps
SaveDatabaseTimeStamp();
SaveDatabaseStatus();
}
else
{
// dabase not changed --> nothing to do
// restore database status
StationData.Database.SetDBStatus(GetDatabaseStatus());
}
}
// update location database
this.ReportProgress(0, "Updating locations from web database...");
// get update from url