From 1220b4430f691291a3312573069b6b2cc9645d3c Mon Sep 17 00:00:00 2001 From: Tove Rumar Date: Thu, 27 Jun 2024 15:33:47 +0200 Subject: [PATCH] Add ip address instead of CRTP address to fpv example This example needs to connect to the crazyflie over tcp. --- examples/aideck/fpv.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/aideck/fpv.py b/examples/aideck/fpv.py index 5bf0e51f..1a6b7e35 100644 --- a/examples/aideck/fpv.py +++ b/examples/aideck/fpv.py @@ -68,7 +68,10 @@ logging.basicConfig(level=logging.INFO) -URI = uri_helper.uri_from_env(default='radio://0/80/2M/E7E7E7E7E7') +# If you have set a CFLIB_URI environment variable, that address will be used. +URI = uri_helper.uri_from_env(default='tcp://192.168.4.1:5000') +# 192.168.4.1 is the default IP address if the aideck is Access point. If you are using the aideck as a station, you should use the assigned IP address +# 5000 is the default port for the aideck CAM_HEIGHT = 244 CAM_WIDTH = 324