Skip to content

Commit

Permalink
Comp dry mass (#23)
Browse files Browse the repository at this point in the history
* Update mass in submodule

* fix test
  • Loading branch information
patrick-gu authored Aug 17, 2024
1 parent 161bcba commit e7b7368
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/cpp/cansw_processor_stm
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ void interpolatedDragCloseToActualDrag() throws IOException {
float alt = Float.parseFloat(values[1]);
float vel = Float.parseFloat(values[2]);
float drag = Float.parseFloat(values[3]);
float interpDrag = ProcessorCalculations.interpolateDrag(ext, vel, alt - 295) * 39.609F;
float interpDrag = ProcessorCalculations.interpolateDrag(ext, vel, alt - 295) * 42.5288206112F;
Assertions.assertTrue(Math.abs(interpDrag - drag) < 20 || Math.abs(interpDrag - drag) / drag < 0.03,
"Actual drag: " + drag + ", interpolated drag: " + interpDrag + ", ext: " + ext + ", vel: " + vel + ", alt: " + alt);
}
Expand Down

0 comments on commit e7b7368

Please sign in to comment.