Skip to content

Commit

Permalink
Expect mission to be sent with inspection
Browse files Browse the repository at this point in the history
  • Loading branch information
andchiind committed Nov 20, 2024
1 parent a79480c commit 2f5352b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/isar/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ def start():

if settings.UPLOAD_INSPECTIONS_ASYNC:

def inspections_callback(inspection: Inspection):
def inspections_callback(inspection: Inspection, mission: Mission):
message: Tuple[Inspection, Mission] = (
inspection,
state_machine.current_mission,
mission,
)
state_machine.queues.upload_queue.put(message)

Expand Down
4 changes: 2 additions & 2 deletions src/robot_interface/robot_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,14 +182,14 @@ def get_inspection(self, task: InspectionTask) -> Inspection:

@abstractmethod
def register_inspection_callback(
self, callback_function: Callable[[Inspection], None]
self, callback_function: Callable[[Inspection, Mission], None]
) -> None:
"""Register a function which should be run when inspection data is received
asynchronously. This function should expect to receive an Inspection from.
Parameters
----------
callback_function : Callable[[Inspection]
callback_function : Callable[[Inspection, Mission], None]
Returns
-------
Expand Down

0 comments on commit 2f5352b

Please sign in to comment.