Git Product home page Git Product logo

how_do_drones_work's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

how_do_drones_work's Issues

Problem in working

I had taken the flight on 10m of altitude.
As it started the detection of code it violates and takes yaw angle of 149 deg.
It didn't land on aruco marker so I had to take its control on RC.

Can you just help me about how can I run complete code on my drone ??

Code running confusion

Sir,
Which is the final code to run from below ?
06_precise_landing.py or
test_precise_landing_mavlink.py ?

angle rates/speed in dronekit python

Hi,
I have seen your videos and could connect RPi 3 with pixhawk. I could code with dronekit python. I want know how to get angle rates/speed (p,q,r)(euler angle rates) from dronekit python.

auto land

In the plane.py file,
How can we land the plane

problem in aruco_pose_estimation

in aruco_pose_estimation.py file a think there is a typo
on line 144
roll_marker, pitch_marker, yaw_marker = rotationMatrixToEulerAngles(R_flipR_tc)
i think must be (flipped last 2 chars)
roll_marker, pitch_marker, yaw_marker = rotationMatrixToEulerAngles(R_flip
R_ct)
otherwise i have this errore
NameError: name 'R_tc' is not defined

RE: Finding this Info. and Using It/Almost...

Hello,

Are you still using dronekit? If so, that is good. I am interested in your ideas. I would like to try to duplicate your ideas for my system. Do you ever use a BBB for telemetry and dronekit?

The BBB is another target board from BeagleBoard.org.

...

Anyway...I could not make the software, plane.py, work correctly. Is there a specific command that needs to run while trying to make the software work?

Seth

P.S. I am using 4.14.x Debian Stretch on my BBB via BASH/PuTTY on Win 10 (if this helps out at all). I have been trying to solve many issues w/ this software to try examples online and I have failed so far.

Marker attitude and Camera attitude are exactly same

In aruco_pose_estimation.py:

Line 144

roll_marker, pitch_marker, yaw_marker = rotationMatrixToEulerAngles(R_flip*R_tc)

Line 159

roll_camera, pitch_camera, yaw_camera = rotationMatrixToEulerAngles(R_flip*R_tc)

The equation to calculate marker attitude and camera attitude is exactly the same which gives all three angles in camera frame and marker frame to be exactly same. I understand this could be possible for flipped axes. But in this case, only two axes are flipped. The x axis is of both frames is parallel to each other. That's why at least one angle should be different when computing attitude for camera frame and marker frame.

If this is indeed correct and not a typo, please can you explain how can all angles be the same in both reference frames.

ValueError in aruco_pose_estimation.py

File "aruco_pose_estimation.py", line 119, in
if ids != None:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

Solution:
replace 'ids != None:' with 'if ids is not None:'

Dronekit and OpenCV Python Versions

Hi @tizianofiorenzani, just checking whether OpenCV installed on Python3 and dronekits as we know is supported by only Python 2.x, will that be an issue while running the code, if so, could you please tell which version of OpenCV works well for this code as well as becomes compatible with dronekits? Thanks

error from cameracalib.py

OpenCV Error: Assertion failed (ni > 0 && ni == ni1) in collectCalibrationData, file /build/opencv-VF5Hiu/opencv-2.4.9.1+dfsg/modules/calib3d/src/calibration.cpp, line 3193
Traceback (most recent call last):
File "cameracalib.py", line 120, in
ret, mtx, dist, rvecs, tvecs = cv2.calibrateCamera(objpoints, imgpoints, gray.shape[::-1],None,None)

I have chessboard of 9 *7, hence gave those arguments in command line

super low camera fps and high delay

Hello !
I followed the instructions of the tutorial, came out successful. But when I run save_snapshots.py I notice a delay of 6-7 seconds between the moment I do any action in front of the camera and its display on my laptop screen. Also the refresh rate between two images is super long at least 2 seconds, it makes everything super stuttery and a real pain for only taking the snapshots used for calibrating.
I really don't know what could cause this.
Thanks in advance for your response !

send_land_message_v2(x_rad=angle_x, y_rad=angle_y, dist_m=z_cm*0.01, time_usec=time.time()*1e6)

I got this error.
I'm using python 3.5.0
Here, I am not able to convert time to an integer.
Please help me with the same.

Error:-
return MAVLink_message.pack(self, mav, 200, struct.pack('<QfffffBB', self.time_usec, self.angle_x, self.angle_y, self.distance, self.size_x, self.size_y, self.target_num, self.frame), force_mavlink1=force_mavlink1)
struct.error: required argument is not an integer

Connect Raspberry Pi 3B+ to Pixhawk 4 through from serial USB FTDI to TELEM 2 port

Hi,

Trying to run your test_connect.py code using dronekit on a Raspberry Pi 3B+ connected to a Pixhawk 4 from USB to TELEM2 port. I configured the TELEM2 port for serial as described at the end of this page
I’m using a FTDI cable linked here

I’m using the connection string = “/dev/ttyUSB0” with a baud rate of
57600 and I get the following output on terminal: WARNING: dronekit: Link timeout, no heartbeat for last 5 seconds. The connection string with ACM0 or AMA0 doesn’t work either.
Tried a separate serial check code here but gives gibberish with each baud rate.

Not sure where I’m going wrong. Whether it’s the connection string, baud rate or the hardware connection?

SSSSSSSSSSSSSSS

I was thinking we both can combine EEG( BCI) for this one ...

New tutorial Drone

Good evening Tiziano, I'm an italian student.
I'm your follower, and you are a great teacher.
I have a question for you.
I'm working on a project, and I'm building a drone with px4 in offboard mode and external position estimation( UWB).
I want to simulate this setup I gazebo, with ros.
Can you help me to understand in which way I can develop this simulation?
I follow the tutorial posted by px4, and I have configured a simulation for offboard mode, with a small script to set some point for the drone, with Ubuntu 18.04 and ros melodic.
The next step is simulate the uwb(ranging) inside the simulation and use it to feed the pose message.

Thank you very much for your time.
Continue with your great work!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.