Skip to content

Commit 5bfc7df

Browse files
author
Sylvain Guillet
committed
Fix variable name for threshold comparison
Renamed `battinThreshold` to `BattinThreshold` in the conditional statement to ensure consistency with its definition elsewhere in the code.
1 parent 3d651e5 commit 5bfc7df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IO.Astrodynamics.Net/IO.Astrodynamics/Maneuver/Lambert/LambertSolver.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ private double XToTimeOfFlightGeneral(double x, int n, double lambda)
258258
double rho = System.Math.Abs(e);
259259
double z = System.Math.Sqrt(1 + k * e);
260260

261-
if (dist < battinThreshold)
261+
if (dist < BattinThreshold)
262262
{
263263
// Use Battin series time of flight expression
264264
double eta = z - lambda * x;

0 commit comments

Comments
 (0)