Skip to content

Commit

Permalink
✨ Overhaul 2020, adds Aurora support
Browse files Browse the repository at this point in the history
  • Loading branch information
donatmarko committed Jan 14, 2020
1 parent 866ea78 commit b5b024a
Show file tree
Hide file tree
Showing 7 changed files with 943 additions and 791 deletions.
10 changes: 5 additions & 5 deletions AIPcoord/AIPcoord.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@
</ItemGroup>
<ItemGroup>
<Compile Include="Coordinate.cs" />
<Compile Include="Form1.cs">
<Compile Include="frmMain.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
<Compile Include="frmMain.Designer.cs">
<DependentUpon>frmMain.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
<EmbeddedResource Include="frmMain.resx">
<DependentUpon>frmMain.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
Expand Down
26 changes: 25 additions & 1 deletion AIPcoord/Coordinate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,31 @@ public string ToString(string format, IFormatProvider formatProvider)
break;

case "WEBEYE":
sb.AppendFormat(fi, "{0}:{1}", Math.Round(Latitude, 2), Math.Round(Longitude, 2));
sb.AppendFormat(fi, "{0}:{1}", Math.Round(Latitude, 6), Math.Round(Longitude, 6));
break;

case "AURORA_DMS14":
this.GetDMS(out latDeg, out latMin, out latSec, out north, out lonDeg, out lonMin, out lonSec, out east);
latSecInt = (int)latSec;
latSecDec = (int)((latSec - latSecInt) * 1000);
lonSecInt = (int)lonSec;
lonSecDec = (int)((lonSec - lonSecInt) * 1000);

sb.AppendFormat(fi, "{4}{0:000}.{1:00}.{2:00}.{3:000};{9}{5:000}.{6:00}.{7:00}.{8:000};", latDeg, latMin, latSecInt, latSecDec, (north ? "N" : "S"), lonDeg, lonMin, lonSecInt, lonSecDec, (east ? "E" : "W"));
break;

case "AURORA_DMS11":
this.GetDMS(out latDeg, out latMin, out latSec, out north, out lonDeg, out lonMin, out lonSec, out east);
latSecInt = (int)latSec;
latSecDec = (int)((latSec - latSecInt) * 1000);
lonSecInt = (int)lonSec;
lonSecDec = (int)((lonSec - lonSecInt) * 1000);

sb.AppendFormat(fi, "{4}{0:000}{1:00}{2:00}{3:000};{9}{5:000}{6:00}{7:00}{8:000};", latDeg, latMin, latSecInt, latSecDec, (north ? "N" : "S"), lonDeg, lonMin, lonSecInt, lonSecDec, (east ? "E" : "W"));
break;

case "AURORA_DEC":
sb.AppendFormat(fi, "{0};{1};", Math.Round(Latitude, 8), Math.Round(Longitude, 8));
break;

case "D":
Expand Down
4 changes: 2 additions & 2 deletions AIPcoord/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
[assembly: AssemblyTitle("AIPcoord")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Donat Marko")]
[assembly: AssemblyCompany("Donat Marko - www.donatus.hu")]
[assembly: AssemblyProduct("AIPcoord")]
[assembly: AssemblyCopyright("Copyright © www.donatus.hu 2018")]
[assembly: AssemblyCopyright("Copyright © Donat Marko, 2020.")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand Down
Loading

0 comments on commit b5b024a

Please sign in to comment.