-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from davewalker5/BSR-57-Receiver-Lat-Long
BSR-57 Receiver Latitude and Longitude
- Loading branch information
Showing
48 changed files
with
595 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
129 changes: 129 additions & 0 deletions
129
src/BaseStationReader.Data/Migrations/20230924082223_AircraftDistance.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
40 changes: 40 additions & 0 deletions
40
src/BaseStationReader.Data/Migrations/20230924082223_AircraftDistance.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
#nullable disable | ||
|
||
namespace BaseStationReader.Data.Migrations | ||
{ | ||
/// <inheritdoc /> | ||
[ExcludeFromCodeCoverage] | ||
public partial class AircraftDistance : Migration | ||
{ | ||
/// <inheritdoc /> | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AddColumn<double>( | ||
name: "Distance", | ||
table: "AIRCRAFT_POSITION", | ||
type: "REAL", | ||
nullable: true); | ||
|
||
migrationBuilder.AddColumn<double>( | ||
name: "Distance", | ||
table: "AIRCRAFT", | ||
type: "REAL", | ||
nullable: true); | ||
} | ||
|
||
/// <inheritdoc /> | ||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.DropColumn( | ||
name: "Distance", | ||
table: "AIRCRAFT_POSITION"); | ||
|
||
migrationBuilder.DropColumn( | ||
name: "Distance", | ||
table: "AIRCRAFT"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
src/BaseStationReader.Entities/Exceptions/DuplicateOptionException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using System.Diagnostics.CodeAnalysis; | ||
using System.Runtime.Serialization; | ||
|
||
namespace BaseStationReader.Entities.Exceptions | ||
{ | ||
|
||
[Serializable] | ||
[ExcludeFromCodeCoverage] | ||
public class DuplicateOptionException : Exception | ||
{ | ||
public DuplicateOptionException() | ||
{ | ||
} | ||
|
||
public DuplicateOptionException(string message) : base(message) | ||
{ | ||
} | ||
|
||
public DuplicateOptionException(string message, Exception inner) : base(message, inner) | ||
{ | ||
} | ||
|
||
protected DuplicateOptionException(SerializationInfo serializationInfo, StreamingContext streamingContext) : base(serializationInfo, streamingContext) | ||
{ | ||
} | ||
|
||
public override void GetObjectData(SerializationInfo info, StreamingContext context) | ||
{ | ||
base.GetObjectData(info, context); | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
src/BaseStationReader.Entities/Interfaces/IDistanceCalculator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace BaseStationReader.Entities.Interfaces | ||
{ | ||
public interface IDistanceCalculator | ||
{ | ||
double ReferenceLatitude { get; set; } | ||
double ReferenceLongitude { get; set; } | ||
double CalculateDistance(double latitude1, double longitude1, double latitude2, double longitude2); | ||
double CalculateDistance(double latitude, double longitude); | ||
double MetresToNauticalMiles(double metres); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.