I was trying to make work the examples that are in the web with navio. They seem to work fine but only when i connect the raspberry and my labtop to the same wifi. But when i try to make the connection with temeletry of 3DR, it seem to have problems.
The problem I am having now, it is when i launch one example of dronekit, it only shows the first three lines of code, like this: (i change the baud rate to 57600 in order to make it works)
Connecting to vehicle on: /dev/ttyUSB0
APM:Copter V3.5.2 (62a12357)
Frame: QUAD
Maybe this is not the correct forum for asking problems of dronekit, but i just post it in case some one have also experienced this problem or it is related to navio2.
This way, it works fine, by connecting to the raspberry with wifi.
When i try to connect by telemetry, i put this line:
python vehicle_state.py --connect /dev/ttyUSB0
Also, I modified the vehicle_state.py file, by adding the baudrate of the 3DR telemetry:
vehicle = connect(connection_string, wait_ready=True, baud=57600
And with this line, it only seem to print in the command line, only 2 lines
I am launching dronekit in my PC with ubuntu and connecting with raspberry.
Could i install dronekit in the same raspberry i am using for navio2? Or it would be a lot of cpu usage?
Also, could i install opencv in that raspberry? (i am thinking of connect another raspberry with opencv + dronekit to the raspberry with navio) But before doing that, i am trying to make it work with my pc.
Also, i am connecting the telemetry to the UART port in navio2, thats why i put /dev/ttyAMA0
EDIT:
And also, i try to connect to QGroundControl and MissionPlanner (on windows missionplanner) and in both of them, with the telemetry systems seems to work fine
Just a hint. You can use sed to get an output that looks like this
TELEM1="-A udp:192.168.100.147:14550"
This command outputs the content of the file with added spaces in the beginning of each row, so you dont have to attach pictures. ssh pi@navio.local 'sed -e "s/^/ /" /etc/default/arducopter'
Yep. In case of local a UDP connection, there’s no difference with a remote machine whatsoever. Just use 127.0.0.1 as an address.
Sure. There’s even a POC on our forum. Take a look! I find it pretty awesome.
You should take it into account but I for most of the application you’ll be fine. You can always switch over to C++ or any other language which Mavlink has bindings to.
Could you please try launching mavproxy like this mavproxy.py --master /dev/ttyUSB0 and see if connection succeeds?
“Turns out the issue was that because we were connected over serial telemetry at a baud rate of 57600 it takes ~2 minutes to download the parameters and Dronekit times out after 30 seconds.”
Just have to modify _ _ init _ _.py" from Dronekit and change the timeout parameter to 180 secs or longer.