Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 02 08:30
    kumar-rajwnai opened #1138
  • Nov 26 20:59
    munsterlander commented #1024
  • Nov 26 18:48
    bduva002 commented #1024
  • Nov 26 18:38
    munsterlander commented #1024
  • Nov 26 18:34
    bduva002 commented #1024
  • Nov 25 20:12
    munsterlander commented #1024
  • Nov 25 04:28
    munsterlander commented #1024
  • Nov 25 04:24
    munsterlander commented #1024
  • Nov 25 04:09
    bduva002 commented #1024
  • Nov 25 03:19
    munsterlander commented #1024
  • Nov 25 03:16
    munsterlander commented #1024
  • Nov 25 03:14
    munsterlander commented #1024
  • Nov 25 01:52
    mRwu-Xian commented #1137
  • Nov 25 01:51
    mRwu-Xian edited #1137
  • Nov 25 01:50
    munsterlander commented #1024
  • Nov 25 01:49
    mRwu-Xian commented #1137
  • Nov 25 01:48
    mRwu-Xian commented #1137
  • Nov 25 01:47
    mRwu-Xian commented #1137
  • Nov 25 01:45
    mRwu-Xian commented #1137
  • Nov 25 01:44
    mRwu-Xian edited #1137
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
Armen Yenokyan
@arare94
HI everyone. How can I send the DO_CAMERA_CONTROL (long) command dronekit to vehicle?
Armen Yenokyan
@arare94
*DO_DIGICAM_CONTROL
Jawad
@itzmejawad

Hi ... When i connect to Pixhawk Cube orange through mavproxy.. I get Mode(0x00000000)> error randomly... Further investigation, i found that there is another pi zero connected to the pixhawk through serial 5.

In mavproxy i can solve the issue by doing

mavproxy.py --master=/dev/ttyUSB0 --baudrate=115200 --target-system=1

(just by specifying Pixhawk's target system ID)

however i don't see any option to mention target system ID in vehicle connect of dronekit..

vehicle = connect("/dev/ttyUSB0", baud=115200, target_system=1(some thing like this))

Pls help

nohcnonk
@nohcnonk
I am having trouble getting MAVLink messages using @vehicle.on_message('POSITION_TARGET_LOCAL_NED'), even when I verify via QGC that the flight controller is sending values. 'LOCAL_POSITION_NED' and several other messages are working fine, so I'm stuck. Here is a snippet of my code https://pastebin.com/epqJdDZJ
Gowrishankar P
@Gowrishankar-atmega-robotics
Critical: autopilot:prearm : throttle below failsafe...
Which code in dronekit print this??
Gowrishankar P
@Gowrishankar-atmega-robotics
I mean which line...
Nara atthama
@Mettikodeva-Nara
As far as i know, it appear because u don't turn on your transmitter, u can disable the radio failsafe
Munsterlander
@munsterlander
Hello all, has anyone resolved the issue when using a Cube Orange on the ADSB carrier board where dronekit just throws not stop errors regarding: dronekit.APIException: mode (0, 4) not available on mavlink definition
Munsterlander
@munsterlander
So using raw PyMavlink and dumping the heartbeat yields: <pymavlink.dialects.v10.ardupilotmega.MAVLink_heartbeat_message object at 0x0344CA70>
Munsterlander
@munsterlander
Welp, as confirmed, Dronekit is dead for Ardupilot 4.x+. It was good while it lasted - I guess.