You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey I am trying to connect to my Ardupilot 2.8 using a Raspberry Pi 3. I have already installed python 2.7.13. From the directory "/home/pi/dronekit-python/examples/vehicle_state" I am executing the only file there "vehicle_state.py".
It seems that It is not possible to connect. First of all I have gone through some issues and found many things. By executing the following command
Connecting to vehicle on: /dev/ttyACM0:115200
Traceback (most recent call last):
File "vehicle_state.py", line 40, in <module>
vehicle = connect(connection_string, wait_ready=False)
File "/usr/local/lib/python2.7/dist-packages/dronekit/__init__.py", line 2835, in connect
handler = MAVConnection(ip, baud=baud, source_system=source_system, use_native=use_native)
File "/usr/local/lib/python2.7/dist-packages/dronekit/mavlink.py", line 128, in __init__
self.master = mavutil.mavlink_connection(ip, baud=baud, source_system=source_system)
File "/usr/local/lib/python2.7/dist-packages/pymavlink/mavutil.py", line 1235, in mavlink_connection
return mavudp(device, source_system=source_system, input=input, use_native=use_native)
File "/usr/local/lib/python2.7/dist-packages/pymavlink/mavutil.py", line 875, in __init__
self.port.bind((a[0], int(a[1])))
File "/usr/lib/python2.7/socket.py", line 228, in meth
return getattr(self._sock,name)(*args)
socket.gaierror: [Errno -2] Name or service not known
So I removed the baud rate and leave it to default hoping that this is the same. By executing
python vehicle_state.py --connect '/dev/ttyACM0'
it returns
Connecting to vehicle on: /dev/ttyACM0
Link timeout, no heartbeat in last 5 seconds
and I have tried to set the timeout=180 and timeout=300 but nothing worked. I have also tried this fix: link but it did not work either. So After 30 seconds or more depending on my timeout it drops out. It seems that it can not connect to the pilot. Any ideas how to fix this would be appreciated! Thanks.
The text was updated successfully, but these errors were encountered:
Hey I am trying to connect to my Ardupilot 2.8 using a Raspberry Pi 3. I have already installed python 2.7.13. From the directory "/home/pi/dronekit-python/examples/vehicle_state" I am executing the only file there "vehicle_state.py".
It seems that It is not possible to connect. First of all I have gone through some issues and found many things. By executing the following command
it returns the following error
So I removed the baud rate and leave it to default hoping that this is the same. By executing
it returns
and I have tried to set the timeout=180 and timeout=300 but nothing worked. I have also tried this fix: link but it did not work either. So After 30 seconds or more depending on my timeout it drops out. It seems that it can not connect to the pilot. Any ideas how to fix this would be appreciated! Thanks.
The text was updated successfully, but these errors were encountered: