88from ..prints .parachute_prints import _ParachutePrints
99
1010
11- def detect_motor_burnout (pressure , height , state_vector , u_dot ):
11+ def detect_motor_burnout (_pressure , height , state_vector , u_dot ):
1212 """Detect motor burnout by sudden drop in acceleration.
1313
1414 Returns True when vertical acceleration becomes significantly negative
@@ -48,7 +48,7 @@ def detect_motor_burnout(pressure, height, state_vector, u_dot):
4848 return False
4949
5050
51- def detect_apogee_acceleration (pressure , height , state_vector , u_dot ):
51+ def detect_apogee_acceleration (_pressure , _height , state_vector , u_dot ):
5252 """Detect apogee using near-zero vertical velocity and negative vertical accel.
5353
5454 Apogee occurs when the rocket reaches its highest point, characterized by
@@ -71,7 +71,7 @@ def detect_apogee_acceleration(pressure, height, state_vector, u_dot):
7171 return False
7272
7373
74- def detect_freefall (pressure , height , state_vector , u_dot ):
74+ def detect_freefall (_pressure , height , state_vector , u_dot ):
7575 """Detect free-fall when total acceleration magnitude is low.
7676
7777 Free-fall is characterized by acceleration magnitude close to gravitational
@@ -107,7 +107,7 @@ def detect_freefall(pressure, height, state_vector, u_dot):
107107 return False
108108
109109
110- def detect_liftoff (pressure , height , state_vector , u_dot ):
110+ def detect_liftoff (_pressure , _height , _state_vector , u_dot ):
111111 """Detect liftoff by high total acceleration.
112112
113113 Liftoff is characterized by a sudden increase in acceleration as the motor
@@ -139,7 +139,7 @@ def altitude_trigger_factory(target_altitude, require_descent=True):
139139 (descending) to avoid firing during ascent.
140140 """
141141
142- def trigger (pressure , height , state_vector , u_dot = None ):
142+ def trigger (_pressure , height , state_vector , _u_dot = None ):
143143 vz = float (state_vector [5 ])
144144 if require_descent :
145145 return (height <= target_altitude ) and (vz < 0 )
@@ -359,7 +359,7 @@ def __init__(
359359
360360 self .__evaluate_trigger_function (trigger )
361361
362- def __evaluate_trigger_function (self , trigger ):
362+ def __evaluate_trigger_function (self , trigger ): # pylint: disable=too-many-statements
363363 """This is used to set the triggerfunc attribute that will be used to
364364 interact with the Flight class.
365365
0 commit comments