Browse Source
Consolidate execute_pending_maneuvers() into update_spacecraft_physics() so every spacecraft goes through exactly one propagation path. Changes: - Remove spacecraft_handled_this_frame[256] static array - Remove reset_spacecraft_tracking() function - Remove execute_pending_maneuvers() function - Check maneuver triggers before propagation in update_spacecraft_physics - Propagate to burn time, execute burn, propagate remainder (same order as old code) - Remove execute_pending_maneuvers declaration from simulation.h Benefits: - Single propagation call per spacecraft per frame (was 2 paths) - No static array with magic number - Simpler call chain: no separate maneuver pass - Enables sub-step interpolation for true-anomaly triggers - Sets up foundation for interpolated time triggers Adds TODO in update_spacecraft_physics about testing interpolated burns. All 154 tests pass (240,445 assertions).main
2 changed files with 34 additions and 50 deletions
Loading…
Reference in new issue