Skip to content

Commit f13f92a

Browse files
committed
Fix actuator class calls
1 parent 9892e50 commit f13f92a

3 files changed

Lines changed: 31 additions & 31 deletions

File tree

rocketpy/rocket/actuator/roll.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ class RollActuator(Actuator):
1414
1515
Attributes
1616
----------
17-
RollActuator.name : str
17+
name : str
1818
Name of the roll actuator.
19-
RollActuator.demand_rate : float
19+
demand_rate : float
2020
Demand rate of the roll control in Hz. None indicates a continuous-time actuator.
21-
RollActuator.actuator_range : float
21+
actuator_range : float
2222
Range of the roll control in N·m.
23-
RollActuator.actuator_rate_limit : float
23+
actuator_rate_limit : float
2424
Rate limit of the roll control in N·m/s. The roll torque change is limited to this rate.
25-
RollActuator.clamp : bool, optional
25+
clamp : bool, optional
2626
If True, roll torque is clamped to actuator_range.
2727
If False, a warning is issued when roll torque exceeds the range.
28-
RollActuator.actuator_time_constant : float
28+
actuator_time_constant : float
2929
Time constant for the roll torque actuator dynamics (first-order IIR filter) in seconds.
30-
RollActuator.actuator_initial_output : float
30+
actuator_initial_output : float
3131
Initial roll torque in N·m.
32-
RollActuator.roll_torque : float
32+
roll_torque : float
3333
Current roll torque output magnitude in N·m (Newton-meters).
3434
Positive values indicate counter-clockwise rotation when viewed
3535
from the nose of the rocket.
@@ -90,12 +90,12 @@ def __init__(
9090
@property
9191
def roll_torque(self):
9292
"""Returns the current roll torque in N·m."""
93-
return self._actuator_output
93+
return self.actuator_output
9494

9595
@roll_torque.setter
9696
def roll_torque(self, value):
9797
"""Sets the roll torque in N·m."""
98-
self._actuator_output = value
98+
self.actuator_output = value
9999

100100
def info(self):
101101
"""Prints summarized information of the roll control system.

rocketpy/rocket/actuator/throttle.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,22 @@ class ThrottleActuator(Actuator):
1717
1818
Attributes
1919
----------
20-
ThrottleActuator.name : str
20+
name : str
2121
Name of the throttle actuator.
22-
ThrottleActuator.demand_rate : float
22+
demand_rate : float
2323
Demand rate of the throttle actuator in Hz. None indicates a continuous-time actuator.
24-
ThrottleActuator.actuator_range : float
24+
actuator_range : float
2525
Range of the throttle actuator.
26-
ThrottleActuator.actuator_rate_limit : float
26+
actuator_rate_limit : float
2727
Rate limit of the throttle actuator in 1/s. The throttle change is limited to this rate.
28-
ThrottleActuator.clamp : bool, optional
28+
clamp : bool, optional
2929
If True, throttle is clamped to actuator_range.
3030
If False, a warning is issued when throttle exceeds the range.
31-
ThrottleActuator.actuator_time_constant : float
31+
actuator_time_constant : float
3232
Time constant for the throttle actuator dynamics (first-order IIR filter) in seconds.
33-
ThrottleActuator.actuator_initial_output : float
33+
actuator_initial_output : float
3434
Initial throttle value.
35-
ThrottleActuator.throttle : float
35+
throttle : float
3636
Current throttle value. The throttle is the fraction of the maximum thrust produced by the engine
3737
ranging from 0 (no thrust) to 1 (full thrust).
3838
"""
@@ -91,12 +91,12 @@ def __init__(
9191
@property
9292
def throttle(self):
9393
"""Returns the current throttle value."""
94-
return self._actuator_output
94+
return self.actuator_output
9595

9696
@throttle.setter
9797
def throttle(self, value):
9898
"""Sets the throttle value."""
99-
self._actuator_output = value
99+
self.actuator_output = value
100100

101101
def info(self):
102102
"""Prints summarized information of the throttle control system.

rocketpy/rocket/actuator/thrust_vector.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,22 @@ class ThrustVectorActuator(Actuator):
1313
1414
Attributes
1515
----------
16-
ThrustVectorActuator.name : str
16+
name : str
1717
Name of the thrust vector actuator.
18-
ThrustVectorActuator.demand_rate : float
18+
demand_rate : float
1919
Demand rate of the thrust vector actuator in Hz. None indicates a continuous-time actuator.
20-
ThrustVectorActuator.actuator_range : float
20+
actuator_range : float
2121
Range of the thrust vector actuator in deg.
22-
ThrustVectorActuator.actuator_rate_limit : float
22+
actuator_rate_limit : float
2323
Rate limit of the thrust vector actuator in deg/sec. The thrust vector change is limited to this rate.
24-
ThrustVectorActuator.clamp : bool, optional
24+
clamp : bool, optional
2525
If True, thrust gimbal angle is clamped to actuator_range.
2626
If False, a warning is issued when thrust vector exceeds the range.
27-
ThrustVectorActuator.actuator_time_constant : float
27+
actuator_time_constant : float
2828
Time constant for the thrust vector actuator dynamics (first-order IIR filter) in seconds.
29-
ThrustVectorActuator.actuator_initial_output : float
29+
actuator_initial_output : float
3030
Initial thrust vector gimbal angle in deg.
31-
ThrustVectorActuator._actuator_output : float
31+
gimbal_angle : float
3232
Current thrust vector gimbal angle in deg.
3333
3434
"""
@@ -90,12 +90,12 @@ def __init__(
9090
@property
9191
def gimbal_angle(self):
9292
"""Returns the current gimbal angle in deg."""
93-
return self._actuator_output
93+
return self.actuator_output
9494

9595
@gimbal_angle.setter
9696
def gimbal_angle(self, value):
9797
"""Sets the gimbal angle in deg."""
98-
self._actuator_output = value
98+
self.actuator_output = value
9999

100100
def info(self):
101101
"""Prints summarized information of the thrust vector actuator.
@@ -164,7 +164,7 @@ class ThrustVectorActuator2D:
164164
Time constant for the thrust vector actuator dynamics (first-order IIR filter) in seconds.
165165
ThrustVectorActuator2D.actuator_initial_output : float
166166
Initial thrust gimbal angles in deg.
167-
ThrustVectorActuator2D._actuator_output : float
167+
ThrustVectorActuator2D.actuator_output : float
168168
Current thrust vector gimble angles in deg.
169169
170170
"""

0 commit comments

Comments
 (0)