Skip to content

Commit

Permalink
MNT: controllable_objects to interactable_objects
Browse files Browse the repository at this point in the history
  • Loading branch information
MateusStano committed Dec 8, 2023
1 parent 8ba8202 commit 34622e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions rocketpy/control/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Controller:

def __init__(
self,
controllable_objects,
interactable_objects,
controller_function,
sampling_rate,
initial_observed_variables=[],
Expand Down Expand Up @@ -78,7 +78,7 @@ def __init__(
-------
None
"""
self.controllable_objects = controllable_objects
self.interactable_objects = interactable_objects
self.controller_function = controller_function
self.sampling_rate = sampling_rate
self.name = name
Expand Down Expand Up @@ -115,7 +115,7 @@ def __call__(self, time, state_vector, state_history):
state_vector,
state_history,
self.observed_variables,
self.controllable_objects,
self.interactable_objects,
)
if observed_variables is not None:
self.observed_variables.append(observed_variables)
Expand Down
2 changes: 1 addition & 1 deletion rocketpy/rocket/rocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -1254,7 +1254,7 @@ def add_air_brakes(
name=name,
)
controller = Controller(
controllable_objects=air_brakes,
interactable_objects=air_brakes,
controller_function=controller_function,
sampling_rate=sampling_rate,
initial_observed_variables=initial_observed_variables,
Expand Down

0 comments on commit 34622e8

Please sign in to comment.