@@ -1928,7 +1928,7 @@ def add_thrust_vector_control(
19281928 """
19291929 if hasattr (self , "thrust_vector_control" ):
19301930 # pylint: disable=access-member-before-definition
1931- print (
1931+ warnings . warn (
19321932 "Only one thrust_vector_control per rocket is currently supported. "
19331933 + "Overwriting previous thrust_vector_control and controllers."
19341934 )
@@ -2030,7 +2030,7 @@ def add_roll_control(
20302030 If True, the simulation will clamp roll torque to the range
20312031 [-max_roll_torque, max_roll_torque]. If False, a warning is
20322032 issued when roll torque exceeds the range. Default is True.
2033- Initial_roll_torque : int, float
2033+ initial_roll_torque : int, float
20342034 Initial roll torque in N·m. Default is 0.0.
20352035 roll_torque_time_constant : float, optional
20362036 Time constant for the roll torque dynamics in seconds. Default is None, no dynamics are applied.
@@ -2060,7 +2060,7 @@ def add_roll_control(
20602060 """
20612061 if hasattr (self , "roll_control" ):
20622062 # pylint: disable=access-member-before-definition
2063- print (
2063+ warnings . warn (
20642064 "Only one roll control per rocket is currently supported. "
20652065 + "Overwriting previous roll control and controllers."
20662066 )
@@ -2098,7 +2098,7 @@ def add_throttle_control(
20982098 controller_function ,
20992099 sampling_rate ,
21002100 throttle_range = (0 , 1 ),
2101- throttle_rate_limit = 0 ,
2101+ throttle_rate_limit = None ,
21022102 clamp = True ,
21032103 initial_throttle = 1.0 ,
21042104 throttle_time_constant = None ,
@@ -2185,14 +2185,14 @@ def add_throttle_control(
21852185
21862186 Returns
21872187 -------
2188- throttle_control : ThrottleControl
2189- ThrottleControl object created.
2188+ throttle_control : ThrottleActuator
2189+ ThrottleActuator object created.
21902190 controller : Controller, optional
21912191 Controller object created (only if return_controller is True).
21922192 """
21932193
21942194 if hasattr (self , "throttle_control" ):
2195- print (
2195+ warnings . warn (
21962196 "Only one throttle control per rocket is currently supported. "
21972197 + "Overwriting previous throttle control and controllers."
21982198 )
0 commit comments