Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 04 03:43
    shubham9436 closed #995
  • Dec 04 03:43
    shubham9436 commented #995
  • Dec 04 03:14
    shubham9436 opened #995
  • Dec 02 08:34
    suraj2596 commented #729
  • Dec 02 08:28
    suraj2596 commented #729
  • Dec 02 08:26
    suraj2596 commented #729
  • Dec 02 03:04
    wangjie-ubuntu opened #994
  • Nov 29 10:00
    ijustwant commented #993
  • Nov 29 09:32
    bart opened #993
  • Nov 25 17:44
    FFFgrid commented #85
  • Nov 25 16:16
    Ayvazof opened #992
  • Nov 23 08:53
    CYLOH3898 opened #139
  • Nov 23 08:47
    CHOWYEH opened #991
  • Nov 22 16:25
    kiranshila opened #990
  • Nov 22 16:24
  • Nov 21 13:10
    huangpan2507 commented #795
  • Nov 21 13:10
    huangpan2507 commented #795
  • Nov 21 13:09
    huangpan2507 commented #795
  • Nov 21 13:08
    huangpan2507 commented #795
  • Nov 21 13:07
    huangpan2507 commented #795
ryantheengineer
@ryantheengineer
That's the error output
'''
Connect to flight controller over USB and get live sensor output
'''
import dronekit
from dronekit import connect, VehicleMode
import time
# Connect to the Vehicle (in this case a UDP endpoint)
vehicle = connect('udp:192.168.4.1:14550', wait_ready=True)
Brian Amin
@BAmercury
your laptop is connected to the SSID of the ESP right?
Like it should provide you with like a wifi hotspot to connect too?
ryantheengineer
@ryantheengineer
Correct. I can successfully see and connect to the wifi hotspot created by the ESP, on both my laptop and my phone.
When I browse to 192.168.4.1 and look at the setup for the wifi bridge, there are some options I don't understand (I'll admit I have little understanding of IP stuff)
Brian Amin
@BAmercury
Could you try mission planner or a GCS real quick?
ryantheengineer
@ryantheengineer
I've been trying that as well, no luck so far
Brian Amin
@BAmercury
Okay so maybe the IP or port is different for actually getting/sending data versus configuring the firmware
maybe try running mission planner as admin as well
or disable firewall
ryantheengineer
@ryantheengineer
When I follow the instructions from the link, it asks for a Listern Port, which I don't get. I've been using that 192.168.4.1 IP address to try because I'm not sure what else would go there
That causes connection failure
Brian Amin
@BAmercury
The port would be 14550 I think
ryantheengineer
@ryantheengineer
That's not working (I'm doing this with Mission Planner btw)
Brian Amin
@BAmercury
what happens when you try 14550?
does that also show connection failure?
ryantheengineer
@ryantheengineer
If I type only 14550, it shows connection failure
Brian Amin
@BAmercury
maybe the version of the firmware on the ESP needs to be different?
ryantheengineer
@ryantheengineer
Maybe. I can try that
ryantheengineer
@ryantheengineer
Also here's the setup screen for the Wifi access point:
image.png
Anything obvious I should change?
Brian Amin
@BAmercury
Could you try mission planner with the 14555 port?
With that station IP they list?
and with 192.168.4.1 see if that works
Wait in mission planner when you try to connect via UDP does it just prompt you with a listening port?
ryantheengineer
@ryantheengineer
Yeah, that's what happens when I try to connect via UDP
ryantheengineer
@ryantheengineer
When I give it just 14555, it doesn't have an error message, but it's been several minutes with the connecting window up. How long does connection typically take?
Brian Amin
@BAmercury
several minutes and it doesn't connect?
ryantheengineer
@ryantheengineer
Yeah. I waited at least 5 minutes and decided to shut it off because it wasn't getting anywhere
ryantheengineer
@ryantheengineer
As more context, I have been able to successfully connect to the drone over USB and read the attitude. When I run a connect command from the shell (after connecting my computer to the drone WiFi) I get a link timeout error almost immediately (no heartbeat in 5 seconds).
ryantheengineer
@ryantheengineer
Update: We have working Wi-Fi control! Two things were previously wrong and prevented us from connecting the drone to either Mission Planner or a dronekit script. First, we found from https://diydrones.com/forum/topics/wifi-telemetry-with-cheap-esp8266 that our telemetry connection from the FC board to the Wi-Fi board was wired incorrectly. This wasn't clear from the Ardupilot documentation, since it uses a Pixhawk in the wiring diagram, but those connections aren't labeled on the Pixhawk side. R goes to T, apparently. Second, the IP address to use is not the IPv4 address I find when I look it up on my machine, but the 0.0.0.0 that I found in the Wi-Fi board setup. Now everything appears to be working fine.
Brian Amin
@BAmercury
@ryantheengineer That's great to hear!
ryantheengineer
@ryantheengineer
Is there a way to send trim commands with a dronekit script? We've got our drone taking off and trying to hold altitude, but it's spinning wildly in yaw. I've verified the motor order, spin directions, and prop orientations and locations. I also tried running ESC calibration through Mission Planner, but since we don't have an RC transmitter (full Wi-Fi control) I don't know if I did that process correctly. We're getting spin of about 2 rotations per second, counterclockwise.
Brian Amin
@BAmercury
@ryantheengineer RC override and send the trim?
Channel 4 is yaw
Fabian Faul
@fabianfaul
Hi all, just to be sure. Do all the yaw values in the attitude which we readout over MAVLink include the magnetic declination? So is yaw 0° pointing to true north?
gaetanokent
@gaetanokent
Hi Everyone, I've been trying without success to connect with a simple dronekit-python script to my drone running navio2+rp3. Connection to the drone works perfectly with both QGroundControl or APMPlanner ... connection works directly via the Wifi of the Raspberry since both drone and laptop running QGC or APM are connected to same wifi router. On Ardupilot running on Navio2 I have edited the file sudo nano /etc/default/arducopter with the configuration #TELEM1="-A udp:192.168.1.108:14550" where 192.168.1.108 is the IP address of my laptop. The droneKit script I'm using is vehicle = connect('192.168.1.114:14550', wait_ready=True) where 192.168.1.114 is the IP address of the drone on the wifi network. I simply run this script on my laptop. My goal is to connet to the drone, then get info about telemetry and send instructions for missions. Unfortunately this is not working ... any idea why?
Shubham Baranwal
@shubham9436
Hi everyone, is there any way to know the battery capacity in mAh?
Juan de Dios Yáñez
@juandediosyanez
@fabianfaul interesting question, does it include magnetic declination?
RobbertD
@RobbertD
Hi everyone, can someone explain why I can only communicate with multiple SITL instances when they start their own mavproxy instances? I can only communicate with max 1 SITL instance if I connect directly to SITL instances. This seems odd as both scenarios have distinct port numbers? I sifted through some of the previous gitter messages but I'm still confused
Guohao
@Guohao91
hi ,gentlemen
may i have a childish question?
how to build an app with these scripts?
by which way?
Guohao
@Guohao91
Sorry i am pretty fresh to develop drone control apps
and so far I can just connect Qgroundcontrol/APM with Mavproxy to set up fly plan