Skip to content

Commit 3c8af31

Browse files
committed
trying this
1 parent f56847a commit 3c8af31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/detect.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def object_detection_loop(camera: CameraInterface, model: ModelInterface, args):
2525
"--out",
2626
args.output,
2727
"--out",
28-
"udpin:127.0.0.1:14550",
28+
"udpout:127.0.0.1:14550",
2929
"--baudrate",
3030
str(args.baud),
3131
],
@@ -39,7 +39,7 @@ def object_detection_loop(camera: CameraInterface, model: ModelInterface, args):
3939
TIMEOUT = 30
4040
print(f"Connecting to drone... ({TIMEOUT}s timeout)")
4141
master = mavutil.mavlink_connection(
42-
"udpout:127.0.0.1:14550"
42+
"udpin:127.0.0.1:14550", baud=str(args.baud), input=True
4343
) # adjust for actual drone connection
4444

4545
if not master.wait_heartbeat(timeout=TIMEOUT):

0 commit comments

Comments
 (0)