Skip to content

Commit

Permalink
Drag for multiple DRs and LRs.
Browse files Browse the repository at this point in the history
  • Loading branch information
alanwatsonforster committed Oct 11, 2023
1 parent 520220b commit 1277779
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions airpower/aircraft/_normalflight.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,11 @@ def dodisplacementroll(sense):
# See rule 13.3.1.
self._othermaneuversap -= self.rolldrag("DR")

# See rule 13.3.6
if self._rollmaneuvers > 0:
self._othermaneuversap -= 1
self._rollmaneuvers += 1

# Do not implicitly continue the maneuver.
self._maneuvertype = None
self._maneuversense = None
Expand Down Expand Up @@ -579,6 +584,11 @@ def dolagroll(sense):
# See rule 13.3.1.
self._othermaneuversap -= self.rolldrag("LR")

# See rule 13.3.6
if self._rollmaneuvers > 0:
self._othermaneuversap -= 1
self._rollmaneuvers += 1

# Do not implicitly continue the maneuver.
self._maneuvertype = None
self._maneuversense = None
Expand Down

0 comments on commit 1277779

Please sign in to comment.