Pymaxflight

pyMaxFlight Index / src / Pymaxflight

Auto-generated documentation for src.pyMaxFlight module.

Attributes

MotionClient

Show source in init.py:78

Provides an interface to the MaxFlight Motion Client.

Calling commands without the client open will result in an exception. NEVER use the Motion Client fully unattended.

Signature

class MotionClient:
    ...

MotionClient().counterweightBwd

Show source in init.py:364

Manually moves the counterweight backwards (towards the tail).

This is for troubleshooting and is not necessary to activate under normal circumstances.

Signature

@_ifHandleValid
def counterweightBwd(self):
    ...

MotionClient().counterweightFwd

Show source in init.py:355

Manually moves the counterweight forwards (towards the cabin).

This is for troubleshooting and is not necessary to activate under normal circumstances.

Signature

@_ifHandleValid
def counterweightFwd(self):
    ...

MotionClient().forceRaised

Show source in init.py:346

Forces simulator into raised state. (?)

This is for troubleshooting and is not necessary to activate under normal circumstances.

Signature

@_ifHandleValid
def forceRaised(self):
    ...

MotionClient().freeze

Show source in init.py:336

Locks current target rotation.

Signature

@_ifHandleValid
def freeze(self):
    ...

MotionClient().getCanopyOpen

Show source in init.py:292

Gets whether the canopy is open.

Note that this does not indicate whether the canopy is locked. There is currently no way to detect this.

Signature

@_ifHandleValid
def getCanopyOpen(self) -> bool:
    ...

MotionClient().getEmergencyStop

Show source in init.py:287

Gets whether the emergency stop button is pressed inwards.

Signature

@_ifHandleValid
def getEmergencyStop(self) -> bool:
    ...

MotionClient().getLeftRaised

Show source in init.py:272

Gets whether the left hydraulic lift has reached the highest position.

Signature

@_ifHandleValid
def getLeftRaised(self):
    ...

MotionClient().getLiftReal

Show source in init.py:388

Get real lift measurement. (?)

Signature

@_ifHandleValid
def getLiftReal(self) -> float:
    ...

MotionClient().getLogRange

Show source in init.py:393

Gets range of log messages.

If low is undefined, it will be set to 0. If high is undefined, it will be set to the last element of the list. Both indices are inclusive.

Signature

@_ifHandleValid
def getLogRange(self, low: int = 0, high: int = None) -> list[str]:
    ...

MotionClient().getLowered

Show source in init.py:282

Gets whether the both hydraulic lifts are at the lowest position.

Signature

@_ifHandleValid
def getLowered(self) -> bool:
    ...

MotionClient().getPitchMax

Show source in init.py:262

Gets maximum pitch position in degrees.

Signature

@_ifHandleValid
def getPitchMax(self) -> int:
    ...

MotionClient().getPitchMin

Show source in init.py:267

Gets minimum pitch position in degrees.

Signature

@_ifHandleValid
def getPitchMin(self) -> int:
    ...

MotionClient().getPitchReal

Show source in init.py:378

Get real pitch measurement.

Signature

@_ifHandleValid
def getPitchReal(self) -> float:
    ...

MotionClient().getPitchTarget

Show source in init.py:257

Gets target pitch position in degrees.

Signature

@_ifHandleValid
def getPitchTarget(self) -> int:
    ...

MotionClient().getReady

Show source in init.py:214

Returns whether simulator is ready to accept movement commands.

Signature

@_ifHandleValid
def getReady(self) -> bool:
    ...

MotionClient().getRightRaised

Show source in init.py:277

Gets whether the right hydraulic lift has reached the highest position.

Signature

@_ifHandleValid
def getRightRaised(self) -> bool:
    ...

MotionClient().getRollMax

Show source in init.py:236

Gets maximum roll position in degrees.

Signature

@_ifHandleValid
def getRollMax(self) -> int:
    ...

MotionClient().getRollMin

Show source in init.py:241

Gets minimum roll position in degrees.

Signature

@_ifHandleValid
def getRollMin(self) -> int:
    ...

MotionClient().getRollReal

Show source in init.py:383

Get real roll measurement.

Signature

@_ifHandleValid
def getRollReal(self) -> float:
    ...

MotionClient().getRollTarget

Show source in init.py:231

Gets target roll position in degrees.

Signature

@_ifHandleValid
def getRollTarget(self) -> int:
    ...

MotionClient().home

Show source in init.py:373

Sets target roll and pitch to 0.

Signature

@_ifHandleValid
def home(self):
    ...

MotionClient().isMainWindowOpen

Show source in init.py:173

True if Motion Client is open, otherwise False.

Signature

@property
def isMainWindowOpen(self) -> bool:
    ...

MotionClient().isProcessOpen

Show source in init.py:162

True if Motion Client process is open, otherwise False.

Signature

@property
def isProcessOpen(self) -> bool:
    ...

MotionClient().liftLower

Show source in init.py:312

Initiates the lowering process.

Signature

@_ifHandleValid
def liftLower(self):
    ...

MotionClient().liftRaise

Show source in init.py:302

Initiates the lifting process.

Signature

@_ifHandleValid
def liftRaise(self):
    ...

MotionClient().liftStop

Show source in init.py:307

Interrupts the lifting process.

Signature

@_ifHandleValid
def liftStop(self):
    ...

MotionClient().run

Show source in init.py:328

Activate roll and pitch rotation. Requires start to have been executed.

Signature

@_ifHandleValid
def run(self):
    ...

MotionClient().setPitchTarget

Show source in init.py:248

Sets target pitch position in degrees.

See getPitchMax and getPitchMin for input range.

Signature

@_ifHandleValid
def setPitchTarget(self, val: int):
    ...

MotionClient().setRollTarget

Show source in init.py:222

Sets target roll position in degrees.

See getRollMax and getRollMin for input range.

Signature

@_ifHandleValid
def setRollTarget(self, val: int):
    ...

MotionClient().start

Show source in init.py:317

Prepares roll and pitch rotation. Requires the lifting process be complete.

Despite the name of this function (which matches the button), run must still be triggered to begin moving.

Signature

@_ifHandleValid
def start(self):
    ...

MotionClient().status

Show source in init.py:406

Compiles many of the status getters above into a serializable object.

This excludes any log output and min/max values as they would be redundant to save.

Signature

@_ifHandleValid
def status(self) -> dict:
    ...

MotionClient().stop

Show source in init.py:341

Returns simulator to neutral rotation and halts further movement.

Signature

@_ifHandleValid
def stop(self):
    ...