Skip to content

Commit

Permalink
fixed property call
Browse files Browse the repository at this point in the history
  • Loading branch information
AOS55 committed Oct 2, 2023
1 parent 72105e6 commit c24fd4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flyer_env/envs/common/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ def act(self, action: Action) -> None:
raise NotImplementedError

@property
def controlled_vehicle(self, vehicle):
def controlled_vehicle(self):
"""The vehicle acted upon"""
return self.__controlled_vehicle or vehicle
return self.__controlled_vehicle or self.env.vehicle

@controlled_vehicle.setter
def controlled_vehicle(self, vehicle):
Expand Down Expand Up @@ -167,7 +167,7 @@ def act(self, action: np.array) -> None:

class PursuitAction(ActionType):

ALT_RANGE = (0.0, 10000)
ALT_RANGE = (0.0, -10000)
SPEED_RANGE = (0.0, 300.0)

"""
Expand Down

0 comments on commit c24fd4c

Please sign in to comment.