Skip to content

Commit

Permalink
Update version and fix native library (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvain-guillet authored Sep 12, 2024
1 parent f0811ef commit b86fcb6
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<FileVersion>0.0.1</FileVersion>
<PackAsTool>true</PackAsTool>
<ToolCommandName>astro</ToolCommandName>
<Version>0.5.0-preview-1</Version>
<Version>0.5.0-preview-2</Version>
<Title>Astrodynamics command line interface</Title>
<Authors>Sylvain Guillet</Authors>
<Description>This CLI allows end user to exploit IO.Astrodynamics framework </Description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ public void Observation()
Site site = new Site(14, "SiteA", TestHelpers.EarthAtJ2000, new Planetodetic(19.89367 * Astrodynamics.Constants.Deg2Rad, 47.91748 * Astrodynamics.Constants.Deg2Rad, 984));
var eq = stateVector.RelativeTo(site, Aberration.None).ToEquatorial();

double ra = eq.RightAscension * Astrodynamics.Constants.Rad2Deg; //So, 331.591° is approximately 22 hours, 6 minutes, and 21.93 seconds
double dec = eq.Declination * Astrodynamics.Constants.Rad2Deg; //So, 11.859° is approximately 11°51'32.4"

//SkyField results
double raSkyField = 331.59;
double decSkyField = 11.859;
Expand All @@ -97,8 +100,7 @@ public void Observation()
double raObs = 331.5980;
double decObs = 11.8474;

double ra = eq.RightAscension * Astrodynamics.Constants.Rad2Deg;
double dec = eq.Declination * Astrodynamics.Constants.Rad2Deg;


//Delta relative to observation
double deltaRAObs = System.Math.Abs(ra - raObs);
Expand All @@ -107,6 +109,8 @@ public void Observation()
//Delta relative to observation from skyfield
double deltaRASkyFieldObs = System.Math.Abs(raSkyField - raObs);
double deltaDecSkyFieldObs = System.Math.Abs(decSkyField - decObs);
double deltaIO_SkyField_RA = System.Math.Abs(deltaRAObs - deltaRASkyFieldObs);
double deltaIO_SkyField_DEC = System.Math.Abs(deltaDecObs - deltaDecSkyFieldObs);
Assert.True(deltaRAObs< deltaRASkyFieldObs);
Assert.True(deltaDecObs< deltaDecSkyFieldObs);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<id>IO.Astrodynamics</id>
<authors>Sylvain Guillet</authors>
<copyright>Sylvain Guillet</copyright>
<version>6.0.0-preview-1</version>
<version>6.0.0-preview-2</version>
<title>Astrodynamics framework</title>
<icon>images\dragonfly-dark-trans.png</icon>
<readme>docs\README.md</readme>
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit b86fcb6

Please sign in to comment.