Closed engines-wafu closed 8 months ago
Potential fix, maybe return STOVL specific data in the _Flightdata2Text function?
Pulled the updated moose include to the mission for testing, will report back. Thanks for the quick action, @funkyfranky.
Tested extensively with CV and STOVL approaches and working nominally.
Great, thanks for testing!
Having used the AIRBOSS script extensively on a server running CV and STOVL carriers, we noticed that there are inconsistencies with the scoring on the STOVL carrier.
Expected behavior is correctly called out in documentation and code comments, which is as follows:
The scoring code was modified from the CV code for STOVL application by adding STOVL-only logic in an if/else if block as follows:
The issue is caused by the third if statement where it is looking for
nNv < 1 and playerData.actype==AIRBOSS.AircraftCarrier.AV8B
, which is a variation of the fifth statement looking fornN> 0
. ThenN
andnNv
are assumed to be the total number of normal deviations and the total number of normal VSTOL deviations respectively. On inspection, and as demonstrated,nN
is calculated correctly by taking the total number of deviations and subtracting the total number of large and the total number of small deviations using this linenN=N-nS-nL
. However, this approach has attempted to be used for STOVL grades here:nNv=Nv-nS-nL
When looking at their derivation, it is clear that to account for the higher likelihood of exceedances in close and at the ramp (
nIC
andnAR
) due to the longer exposure of the pilot in these regimes with a STOVL landing procedures. This justification is valid.However, in practice, as
nS
andnL
are still counting all large and small deviations at all four phases, instead of just two, it's highly probable that nNv will be less than 1. This will causeelseif nNv < 1 and playerData.actype==AIRBOSS.AircraftCarrier.AV8B
to returnTrue
and issue a 4.0.This is demonstrated with the following approach, which has multiple normal deviations, but is still awarded a 4.0 due to the logic above:
Where a pilot will also receive a 4.0 for an approach with minor deviations: