Skip to content

Commit

Permalink
Fix AP message.
Browse files Browse the repository at this point in the history
  • Loading branch information
alanwatsonforster committed Sep 28, 2023
1 parent 8075e92 commit 32dfe60
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions airpower/aircraft/_speed.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,19 @@ def _endmovespeed(self):
self._log("- power APs = %+.2f." % self._powerap)
self._log("- speed APs = %+.2f." % self._speedap)
self._log("- altitude APs = %+.2f." % self._altitudeap)
self._log("- turn rate APs = %+.2f and %+.2f." % (self._turnrateap, self._sustainedturnap))
self._log("- sustained turn APs = %+.2f and %+.2f." % (self._turnrateap, self._sustainedturnap))
self._log("- turn rate APs = %+.2f." % self._turnrateap)
self._log("- sustained turn APs = %+.2f." % self._sustainedturnap)
self._log("- speedbrakes APs = %+.2f." % self._speedbrakesap)
ap = self._turnrateap + self._sustainedturnap + self._altitudeap + self._speedbrakesap + self._powerap + self._speedap
self._log("- total APs = %+.2f with %+.2f carry = %+.2f." % (ap, self._apcarry, ap + self._apcarry))
ap += self._apcarry
self._log("- carry APs = %+.2f." % self._apcarry)
ap = \
self._turnrateap + \
self._sustainedturnap + \
self._altitudeap + \
self._speedbrakesap + \
self._powerap + \
self._speedap + \
self._apcarry
self._log("- total APs = %+.2f." % ap)

# See the "Speed Gain", "Speed Loss", and "Rapid Accel Aircraft" sections
# of rule 6.2 and the "Supersonic Speeds" section of rule 6.6.
Expand Down

0 comments on commit 32dfe60

Please sign in to comment.