From 34622e8c88b9e98d3730ba91986bd899613bc8b9 Mon Sep 17 00:00:00 2001 From: MateusStano Date: Fri, 8 Dec 2023 03:55:52 +0100 Subject: [PATCH] MNT: controllable_objects to interactable_objects --- rocketpy/control/controller.py | 6 +++--- rocketpy/rocket/rocket.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rocketpy/control/controller.py b/rocketpy/control/controller.py index b78eb1096..c34299e79 100644 --- a/rocketpy/control/controller.py +++ b/rocketpy/control/controller.py @@ -10,7 +10,7 @@ class Controller: def __init__( self, - controllable_objects, + interactable_objects, controller_function, sampling_rate, initial_observed_variables=[], @@ -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 @@ -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) diff --git a/rocketpy/rocket/rocket.py b/rocketpy/rocket/rocket.py index fdceb787c..f96bf0753 100644 --- a/rocketpy/rocket/rocket.py +++ b/rocketpy/rocket/rocket.py @@ -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,