cinnaboot
|
13982eb222
|
tighten test_maneuvers assertions with precalculated values
- Remove qualitative REQUIRE(> / <) checks, use quantitative WithinAbs
- Prograde final_r: WithinAbs(7085656, 320000) (was 500000 tolerance)
- Retrograde final_r: WithinAbs(6525686, 250000) (was qualitative <)
- Normal z_change: WithinAbs(348678, 350000) (was 500000 tolerance + qualitative >)
- Angle change per quarter: WithinAbs(1.56373, 0.001) (was 0.1 rad tolerance)
- Total rotation: WithinAbs(6.25493, 0.001) (was 0.1 rad tolerance)
- Fix precalc script to use local-frame distances matching C++ tests
|
2 months ago |
cinnaboot
|
b333a1745f
|
refactor test_maneuvers: add spacecraft struct to sim_engine, rewrite tests
- Add Spacecraft dataclass, BurnDirection enum, and burn functions to sim_engine.py
- Add spacecraft config loading, initialization, and propagation to Simulator
- Convert TOML config to TOML 1.0 inline table syntax
- Rewrite test_maneuvers.cpp as 1 SCENARIO with 6 SECTIONs (proper fixture reuse)
- Use local-frame distances for burn tests (global dominated by Earth-Sun distance)
- Tighten propagation stability checks: distance drift < 0.01%, a drift < 0.01%, e preserved within 1e-6
- Remove old test files
|
2 months ago |