Skip to content

Commit

Permalink
Updating TransitionTimer import/instantiation and checking the hsv_fi…
Browse files Browse the repository at this point in the history
…lter to ensure we are following the correct detection.
  • Loading branch information
teiszler committed Mar 20, 2024
1 parent 81bbe59 commit b432672
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions droneDSL/python/task_defs/TrackTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import json
import numpy as np
import math
from transition_defs.TransTimer import TransTimer
from transition_defs.TimerTransition import TimerTransition
from interfaces.Task import Task
import time
import logging
Expand Down Expand Up @@ -50,7 +50,7 @@ def create_transition(self):

# Triggered event
if ("timeout" in self.transitions_attributes):
timer = TransTimer(args, self.transitions_attributes["timeout"])
timer = TimerTransition(args, self.transitions_attributes["timeout"])
timer.daemon = True
timer.start()

Expand Down Expand Up @@ -188,7 +188,7 @@ async def run(self):
box = None
for det in json_data:
# Return the first instance found of the target class.
if det["class"] == target:
if det["class"] == target and det["hsv_filter"]:
box = det["box"]
break

Expand Down

0 comments on commit b432672

Please sign in to comment.