dronekit / dronekit-python

DroneKit-Python library for communicating with Drones via MAVLink.
https://readthedocs.org/projects/dronekit-python/
Apache License 2.0
1.5k stars 1.42k forks source link

problem with the simolation #1200

Open naorwaiss opened 11 months ago

naorwaiss commented 11 months ago

hi i try to start the simolation at the mission planer ...i use this videio (https://www.youtube.com/watch?v=HD3c7sOHyx8) at the first comment : (venv) PS C:\Users\naorw\PycharmProjects\pythonProject2> python -m dronekit_sitl copter
os: win, apm: copter, release: stable SITL already Downloaded and Extracted. Ready to boot. Execute: C:\Users\naorw.dronekit\sitl\copter-3.3\apm.exe --home=-35.363261,149.165230,584,353 --model=quad -I 0 SITL-0> Started model quad at -35.363261,149.165230,584,353 at speed 1.0 SITL-0.stderr> bind port 5760 for 0 Starting sketch 'ArduCopter' Serial port 0 on TCP port 5760 Starting SITL input Waiting for connection ....

i think this is run fine at the other line i try to use this line ( python -m mavproxy --master tcp:127.0.0.1:5760 --out 127.0.0.1:1450) the it isnt open to me the mavlink protocol.. if i use the mission planner to see the simolation i can connect onley at tcp and not at udp so i cant controll my simulat drone can someone help me?

DanieleAzz commented 11 months ago

@naorwaiss Hi, there should be a typo: The port has to be: 14550 and maybe you forgot = after --out

python -m mavproxy --master tcp:127.0.0.1:5760 --out=127.0.0.1:14550