Skip to content

Commit

Permalink
Unified maneuvers and turns.
Browse files Browse the repository at this point in the history
  • Loading branch information
alanwatsonforster committed Oct 11, 2023
1 parent 72bc983 commit 8c04034
Show file tree
Hide file tree
Showing 2 changed files with 184 additions and 135 deletions.
22 changes: 11 additions & 11 deletions airpower/aircraft/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ def __init__(self, name, aircraftdata, hexcode, azimuth, altitude, speed, config
self._flighttype = "LVL"
self._powersetting = "N"
self._bank = None
self._turnrate = None
self._turnfp = 0
self._prepfp = 0
self._maneuvertype = None
self._maneuversense = None
self._maneuverfp = 0
self._fpcarry = 0
self._apcarry = 0
self._gloccheck = 0
Expand Down Expand Up @@ -199,9 +199,9 @@ def _restore(self, i):
self._powersetting, \
self._flighttype, \
self._bank, \
self._turnrate, \
self._turnfp, \
self._prepfp, \
self._maneuvertype, \
self._maneuversense, \
self._maneuverfp, \
self._fpcarry, \
self._apcarry, \
self._gloccheck, \
Expand Down Expand Up @@ -231,9 +231,9 @@ def _save(self, i):
self._powersetting, \
self._flighttype, \
self._bank, \
self._turnrate, \
self._turnfp, \
self._prepfp, \
self._maneuvertype, \
self._maneuversense, \
self._maneuverfp, \
self._fpcarry, \
self._apcarry, \
self._gloccheck, \
Expand Down Expand Up @@ -298,9 +298,9 @@ def move(self, flighttype, power, actions, flamedoutengines=0):

# This flags whether a maneuvering departure has occured.

self._maneuveringdeparture = False
self._maneuveringdeparture = False

self._flighttype = flighttype
self._flighttype = flighttype

self._startmovespeed(power, flamedoutengines)

Expand Down
Loading

0 comments on commit 8c04034

Please sign in to comment.