Skip to content

Commit

Permalink
updated function names
Browse files Browse the repository at this point in the history
  • Loading branch information
ashum68 committed Jun 22, 2024
1 parent 4af0143 commit 751c0ab
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions modules/decision_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,16 @@ class CommandType(enum.Enum):
RESUME_MISSION = 1

@classmethod
def create_stop_command(cls) -> "tuple[bool, DecisionCommand | None]":
def create_stop_mission_and_halt_command(cls) -> "tuple[bool, DecisionCommand | None]":
"""
Command to stop and loiter the drone.
"""
return True, DecisionCommand(cls.__create_key, DecisionCommand.CommandType.STOP_MISSION_AND_HALT)
return True, DecisionCommand(
cls.__create_key, DecisionCommand.CommandType.STOP_MISSION_AND_HALT
)

@classmethod
def create_resume_command(cls) -> "tuple[bool, DecisionCommand | None]":
def create_resume_mission_command(cls) -> "tuple[bool, DecisionCommand | None]":
"""
Command to resume auto mission.
"""
Expand Down

0 comments on commit 751c0ab

Please sign in to comment.