@@ -1950,7 +1950,7 @@ def add_thrust_vector_control(
19501950 """
19511951 if hasattr (self , "thrust_vector_control" ):
19521952 # pylint: disable=access-member-before-definition
1953- print (
1953+ warnings . warn (
19541954 "Only one thrust_vector_control per rocket is currently supported. "
19551955 + "Overwriting previous thrust_vector_control and controllers."
19561956 )
@@ -2052,7 +2052,7 @@ def add_roll_control(
20522052 If True, the simulation will clamp roll torque to the range
20532053 [-max_roll_torque, max_roll_torque]. If False, a warning is
20542054 issued when roll torque exceeds the range. Default is True.
2055- Initial_roll_torque : int, float
2055+ initial_roll_torque : int, float
20562056 Initial roll torque in N·m. Default is 0.0.
20572057 roll_torque_time_constant : float, optional
20582058 Time constant for the roll torque dynamics in seconds. Default is None, no dynamics are applied.
@@ -2082,7 +2082,7 @@ def add_roll_control(
20822082 """
20832083 if hasattr (self , "roll_control" ):
20842084 # pylint: disable=access-member-before-definition
2085- print (
2085+ warnings . warn (
20862086 "Only one roll control per rocket is currently supported. "
20872087 + "Overwriting previous roll control and controllers."
20882088 )
@@ -2120,7 +2120,7 @@ def add_throttle_control(
21202120 controller_function ,
21212121 sampling_rate ,
21222122 throttle_range = (0 , 1 ),
2123- throttle_rate_limit = 0 ,
2123+ throttle_rate_limit = None ,
21242124 clamp = True ,
21252125 initial_throttle = 1.0 ,
21262126 throttle_time_constant = None ,
@@ -2207,14 +2207,14 @@ def add_throttle_control(
22072207
22082208 Returns
22092209 -------
2210- throttle_control : ThrottleControl
2211- ThrottleControl object created.
2210+ throttle_control : ThrottleActuator
2211+ ThrottleActuator object created.
22122212 controller : Controller, optional
22132213 Controller object created (only if return_controller is True).
22142214 """
22152215
22162216 if hasattr (self , "throttle_control" ):
2217- print (
2217+ warnings . warn (
22182218 "Only one throttle control per rocket is currently supported. "
22192219 + "Overwriting previous throttle control and controllers."
22202220 )
0 commit comments