Quite right, a hit or miss can be calculated. I believe JSBSim can output the flight data into CSV format, I'll run a test and see how it works with the Jupiter 246 rocket.
Gathering all the data for each FDM is very time consuming. I spent six hours and feel confident I have everything I need for the BGM-109B, C, H and G varients, that is submarine (B), ship (C), air (H) and ground (G) launched Tomahawks respectively. I have been studying guidance and control extensively, and the Tomahawk really does it all, a rocket, an airplane, and a guided bomb all in one.
Here is what I am working on for the Tomahawk, but much of it applies to all missile guidance systems.
1) PRE-LAUNCH PHASE
Target coordinates (fixed ground target defined in .js script variables LAT/LONG/AGL) are used to calculate a possible launch solution and configures/initiates the guidance program for control and navigation to the target. The Tomahawk is used primarily against slow moving or fixed targets, such as ships or bunkers... so I do not need to predict the future position of high velocity targets. This makes things less complex for now, and we will assume the targets are fixed. We will also assume the seeker is GPS/INS based, I cannot simulate DSMAC.
2) LAUNCH PHASE
The seeker, sensor and launch guidance systems are initiated and the Solid Rocket Motor is fired upon command initiation.
3) BOOST PHASE
During the boost phase, the guidance rolls to azimuth, holds yaw, and performs the pitch turn to horizontal flight. The solid booster provides 6000 lbf (pound force, or 26 kN) thrust for 12 seconds reaching maximum dynamic pressure.
4) TRANSITION TO CRUISE PHASE
Above a specified velocity the engine fairing is jettisoned and the wings, fins and intake are deployed for aerodynamic stability and oxidizer flow. Once the solid booster burns out it is jettisoned and the turbofan engine is started. The guidance makes heading and course corrections and holds roll and pitch.
5) CRUISE (MID-COURSE) PHASE
Depending on the mission profile, during the cruise phase the missile assumes the desired altitude and navigates to the target area. A high altitude flight path will have the greatest range, while a low altitude terrain follow mode would be more stealthy on approach beneath enemy radar, mere meters above the ground. This will be configured prior to launch in the script file .js variables to select the mission profile. In terrain follow mode, the missile will maintain an altitude (AGL) by calculating the average AGL per given amount of time (smooth ascent/descent, maybe Kalman filtered control output).
6) TERMINAL PHASE
Once within the target area the guidance makes final course adjustments and the seeker guides it onto target.
7) TERMINAL MANEUVER PHASE
A pop-up maneuver can be performed prior to impact, in order to gain altitude and dive vertically providing the maximum kinetic energy. Guidance controls all channels for final precision approach and impact.
Each of these guidance phases will have triggers in JSBSim guidance/executive to perform the maneuvers and switch between phases automatically. (It already does that of course)
Regards,
Uriah