Increase epsilon for apogee

This commit is contained in:
SiboVG 2023-08-23 22:57:24 +02:00
parent ff31c886a3
commit ed883fafa3

View File

@ -170,7 +170,7 @@ public class FlightEventsTest extends BaseTestCase {
if (1200 != expected.getTime()) { if (1200 != expected.getTime()) {
// Tumbling can have a very large time error, so implement a more course epsilon (otherwise unit tests just keep failing...) // Tumbling can have a very large time error, so implement a more course epsilon (otherwise unit tests just keep failing...)
double epsilon = actual.getType() == FlightEvent.Type.TUMBLE ? 0.05 : EPSILON; double epsilon = actual.getType() == FlightEvent.Type.TUMBLE || actual.getType() == FlightEvent.Type.APOGEE ? 0.05 : EPSILON;
assertEquals("Branch " + b + " FlightEvent " + i + " type " + expected.getType() + " has wrong time ", assertEquals("Branch " + b + " FlightEvent " + i + " type " + expected.getType() + " has wrong time ",
expected.getTime(), actual.getTime(), epsilon); expected.getTime(), actual.getTime(), epsilon);
} }