Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 16 23:13
    peterbarker commented #1126
  • Oct 16 17:52
    Pascal91 commented #1126
  • Oct 16 17:48
    Pascal91 commented #1126
  • Oct 16 17:32
    Pascal91 commented #1126
  • Oct 16 17:26
    Pascal91 commented #1126
  • Oct 16 00:54
    hamishwillee commented #1126
  • Oct 15 23:06
    peterbarker commented #1126
  • Oct 15 12:10
    RickerStem edited #1126
  • Oct 15 12:06
    RickerStem edited #1126
  • Oct 15 12:03
    RickerStem opened #1126
  • Oct 12 22:55
    Al3xFreeman commented #1082
  • Oct 03 12:57
    Git-Ilan commented #1083
  • Oct 03 12:42
    Git-Ilan commented #1083
  • Sep 30 16:09
    naghmehivaki commented #696
  • Sep 30 16:08
    naghmehivaki commented #696
  • Sep 18 05:31
    bhaskar-glitch commented #625
  • Sep 18 05:22
    hamafathi opened #1125
  • Sep 17 18:03
    bhaskar-glitch commented #695
  • Sep 17 18:03
    bhaskar-glitch commented #695
  • Sep 08 19:28
    dmj17b opened #1124
radkomoder
@radkomoder
Hi, I have a question - I am controlling a rover with dronekit in python. Sometimes I can not change mode to 'Loiter' or 'Auto' with Dronekit, however I can do it with MissionPlanner.
Looks like DroneKit needs better GPS fix or something like that - can you help me how to debug this behavior? Only thing I get from APM in this case is 'Flight mode change failed'.
I thought that DroneKit sends same commands as MissionPlanner. Can I see raw commands sent to APM from MissionPlanner and Dronekit, so I can compare betweem them?
Candy
@Candy-Share

Need to upgrade your drone? I think good tools are needed
Recommend a good soldering iron or soldering station ! Suggestions of soldering iron kits for beginners!

Lightweight design, easy to install and use, easy to remove and store, comfortable control handle, high-efficiency heating end, simple control interface. It is a favorite tool for electronic engineers and electronic maintenance enthusiasts.

It can work in DC 12-24V. OLED screen display, key temperature adjustment, external independent power supply. In DC 19V 40W state, 15 seconds temperature rise to 300 ℃.
https://sequremall.com/collections/soldering-irons/products/sq-001-mini-soldering-iron

louisreine
@louisreine
Hi! I'm trying to connect to jmavsim using dronekit. the sitl software connects to QGroundcontrol and APM planner (I am running the code on OS X 10.13.6). However when I try connecting dronekit using drone = connect('127.0.0.1:14540', wait_ready=True), it gives me an error before timing out : APIException: mode (100925440, 93) not available on mavlink definition
ERROR:dronekit:Exception in message handler for HEARTBEAT. I guess it may be a problem on the jmavsim side (wrong copter type?), but I don't know. Can you help me ? Thank in advance =
yoel169
@yoel169
Hello. I'm trying to setup my navio 2 and my raspberry 4 as my ground station using serial0 or IP address and I don't get a heartbeat.
algikckyvz
@algikckyvz
Hi! I am trying to read drone vibration values vibex, vibey and vibez. I can see their values on Mission Planner interface but I cannot extract the values to my python code by using the dronekit library. I can also read drones parameters such as battery voltage/current, altitude etc. values with vehicle.battery.voltage etc. How can I read vibration values?
sky4D
@sky4D
Hi! I am trying to modify the dronekit-sitl plane model to high speed aircraft. Does it support jsbsim models?
richahert
@richahert
Hi! How can I disconnect from a vehicle? I struggle to reconnect from a different part of the program because I can't properly disconnect and release the port.
richahert
@richahert

Hi! How can I disconnect from a vehicle? I struggle to reconnect from a different part of the program because I can't properly disconnect and release the port.

In case anyone wondered: vehicle._handler.close(), then vehicle._handler.stop_threads()

ozcanyureklioglu
@ozcanyureklioglu
Hello, I have usb connection with nvidia jetson nano and pixhawk cube orange. I tried "mavproxy.py" on the console and it worked. I tried "dev / ttyACM0" with dronekit but it didn't work. Why could it be?. Can you help me?
Guohao
@Guohao91
@ozcanyureklioglu plug in fisrt, then start the service
it is probably the issue about the port identification
ozcanyureklioglu
@ozcanyureklioglu
@Guohao91 thank you for the answer. I will try
Guohao
@Guohao91
anytime
did anybody here is developing a control app manipulated through NoGPS mode?
Guohao
@Guohao91
Did you download that virtual GCS?
MUHAMMEDZEYN
@MUHAMMEDZEYN
hi there
did anybody use dronekit for vtol flight ? if so what is the commands to do the transitions
Jaime Machuca
@jmachuca77
The transitions are done automatically when you change modes. Or as part of a mission
Guohao
@Guohao91
right
simply switch the modes
MUHAMMEDZEYN
@MUHAMMEDZEYN
I am not switching the modes via transmitter. I want to change it by the algorithm of dronekit is it possible to do it as
vtol.mode = 'transition' ? @jmachuca77 @Guohao91 if so do you know the function to do it ?
Just change to the mode you want to be in. If it’s a plane mode it will fly like a plane, if it’s a Q mode it will fly like a Copter
Islam SEDDIK
@Medislamseddik_twitter
first of all I would like to thank you for your support
and then I am a beginner in this field (I know programming in c and c ++ because I am a computer scientist) I wanted to know is it possible that I start to program controller firmware for drone directly ?
another question is there a solution to program firmware and then test them in a virtual environment (without assembling a drone each time)
mh2024
@mh2024
Hi everybody
Hope you're feeling well
I realized that with the drone flying using a dronekit script, logs are not being saved on the pixhawk sd card for that flight.
I was wondering if there is a way to change it to normal, which means saving logs on the sd card for further debuggings.
Any help or comment is appreciated
Thank you all
Guohao
@Guohao91
@MUHAMMEDZEYN Just use setMode(" ")
MUHAMMEDZEYN
@MUHAMMEDZEYN
@Guohao91 @jmachuca77 thanks alot I will try it
Candy
@Candy-Share
The best tool to upgrade drones. After purchasing this product, 92.4% of drone players said it is quite practical. https://bit.ly/3vvQszF
Jawad
@itzmejawad
Hi all,
Have anyone tried reading PIXY IR sensor data in dronekit
Ícaro
@icarosadero
Hello, can I have a list of drones that support the MAVLink protocol?
MohammadAmin Khazaei
@mohammada315
HI
Ícaro
@icarosadero
Anyone here at all?
MohammadAmin Khazaei
@mohammada315

I run this command in the console

python multivehicle.py --simulation-count 2 --extra-connection udpout:localhost:9432

i received the following output :
Creating simulator (SITL) 0 SITL already Downloaded and Extracted. Ready to boot. Creating simulator (SITL) 1 SITL already Downloaded and Extracted. Ready to boot. 0: Launching SITL (['-I0', '--model', 'quad', '--home=-35.363261,149.165230,584,353']) 0: Connecting to its vehicle 1 Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/usr/lib/python3.8/threading.py", line 870, in run self._target(self._args, **self._kwargs) File "multivehicle.py", line 63, in change_sysid_target vehicle = dronekit.connect(connection_string, wait_ready=True, target_system=1) TypeError: connect() got an unexpected keyword argument 'target_system' 1: Launching SITL (['-I1', '--model', 'quad', '--home=-35.363181000000004,149.165230,584,353']) 1: Connecting to its vehicle 1 Exception in thread Thread-4: Traceback (most recent call last): File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/usr/lib/python3.8/threading.py", line 870, in run self._target(self._args, **self._kwargs) File "multivehicle.py", line 63, in change_sysid_target vehicle = dronekit.connect(connection_string, wait_ready=True, target_system=1) TypeError: connect() got an unexpected keyword argument 'target_system' Waiting for thread... Waiting for thread... Sleeping a little to let SITLs go away... Launching SITLs Starting mavlink_hub thread Hub thread starting Attempting connect to (udpout:localhost:2345) Creating connection (tcp:127.0.0.1:5760) Creating connection (tcp:127.0.0.1:5770) Creating connection (udpout:localhost:9432) Creating connection (udpin:localhost:2345) Opening connection to tcp:127.0.0.1:5760 Opening connection to tcp:127.0.0.1:5770 Opening connection to udpout:localhost:9432 Opening connection to udpin:localhost:2345 Traceback (most recent call last): File "multivehicle.py", line 117, in <module> mav = dronekit.mavlink.MAVConnection(connection_string) AttributeError: module 'dronekit' has no attribute 'mavlink' Connection (udpout:localhost:9432) timed out Connection (udpin:localhost:2345) timed out Opening connection to udpout:localhost:9432 Opening connection to udpin:localhost:2345 Connection (udpout:localhost:9432) timed out Connection (udpin:localhost:2345) timed out Opening connection to udpout:localhost:9432 Opening connection to udpin:localhost:2345 Connection (udpout:localhost:9432) timed out Connection (udpin:localhost:2345) timed out Opening connection to udpout:localhost:9432 Opening connection to udpin:localhost:2345 Connection (udpout:localhost:9432) timed out Connection (udpin:localhost:2345) timed out Opening connection to udpout:localhost:9432 Opening connection to udpin:localhost:2345

what's the problem ?

MUHAMMEDZEYN
@MUHAMMEDZEYN

Hello, I have problem on communication raspberry pi to pixhawk cube orange with dronekit. When I use Q_Enable_Mode=1 (VTOL Mode) and SERIAL2_BAUD=921, LOG_BACKEND_TYPE=2 SERIAL_PROTOCOL=921 these error appear on rpi 3 ;

“from dronekit import connect
vehicle connect(”/dev/ttyUSB0", wait_ready=True, baud=921600)
"

raise APIException(“mode (%s, %s) not available on mavlink definition” % (m.custom_mode, m.base_mode))
APIException: mode (11, 89) not available on mavlink definition
ERROR:dronekit:Exception in message handler for HEARTBEAT
Traceback (most recent call last):
File “/usr/local/lib/python2.7/dist-packages/dronekit/init.py”, line 1531, in notify_message_listeners
fn(self, name, msg)
File “/usr/local/lib/python2.7/dist-packages/dronekit/init.py”, line 1223, in listener

dronekit = 2.9.2
pymavlink = 2.4.9
How can I overcome this issue can you help ?

Note: It doesnt come up when Q_ENABLE = 0.

1 reply
sieuwe elferink
@sieuwe1
Hi is it possible to connect a apm2.8 board to dronekit using usb?
lal
@everytcry_twitter
hello, i want to ask a question i want to draw 8 on quadcopter how can i do it except "goto" function
pg_1234
@pg_1234:matrix.org
[m]
Hello. I tried to run drone_delivery.py but it runs infinitely at [DEBUG] Polled mode:Guided can someone help me resolve this please?
SohaibAJ
@SohaibAJ

Hello, I have been trying to run a simple dronekit code but have been running into quite a few problems. Firstly I was unable to change the flight mode using the mavproxy command line and the dronekit code but by adding a snippet in the mavutil.py file I was able to change the code in the mavproxy.py command line. Running dronekit sitl works and changes the modes but when I try to run the same code on the actual drone it give me the following error in dronekit command windows

WARNING:autopilot:Flight mode change failed

and this error in the mavproxy UI
Got COMMAND_ACK: DO_SET_MODE: UNSUPPORTED

mh2024
@mh2024
@SohaibAJ Aren’t you using px4 firmware instead of ardupilot on your actual drone?
As dronekit is not compatible with px4 mode switching by default, that might be the case
SohaibAJ
@SohaibAJ

@mh2024 I am using Arducopter 3.6.12 on my actual drone. I also tried it with 4.0.7 but that did not solve the issue either.

The reason I downgraded to 3.6.12 is because 2 years ago, this exact code worked then. I even tried downgrading dronekit, mavproxy and its dependencies but that gave other problems such as completely refusing to arm. The vehicle.armed always echoed False.

mh2024
@mh2024
@SohaibAJ sorry,i don’t have any idea on that.
Nearly the same error happened to me at the beginning when i have started to use dronekit but that was an issue of a typo which i’m sure here is not the problem
Nara atthama
@Mettikodeva-Nara
hi guys, i'm using raspberry pi 4 as companion computer for pixhawk1
i'm using this code for GUIDED_NOGPS mode https://github.com/dronekit/dronekit-python/blob/master/examples/set_attitude_target/set_attitude_target.py
after my copter armed, instead of taking off it disarmed again
what should i do?
Johar Palacita
@palacita
Hi guys, do you have any example python code for vtol?
GRS26
@GRS26
Hello
can someone explain to me the difference between dronekit and pymavlink?
Nyyir Soobrattee
@nyyirs
This message was deleted
Hello guys, I am a complete noob in general for drones related. I came across a super cool drone flywoo nano hex. I want to use dronekit with it. Is that possible? bellow is a wiring diagram and ports on the F7 board. It has betaflight flashed on it.
Capture.PNG