Jonathan Price's Posts (4)

Sort by

PI_14.04.16_FutureofTech_260x2601.jpg?width=260

A new Pew Research Internet Project poll on U.S. Views of Technology and the Future has found that most respondents were pessimistic about the benefits of personal and commercial drone technology.

Among the findings:

  • 63% think it would be a change for the worse if personal and commercial drones are given permission to fly through most U.S. airspace.
  • 22% think it would be a change for the better.
  • Opinions are more positive among men (27%), 18–29-year-olds (30%), and long-term technological optimists (28%).
  • No demographic group was majority positive.

The full results of the poll are available from the Pew Research Internet Project.

Read more…

3689506947?profile=original

In a welcome contrast to the current posturing of the American media right now, the police in Bologna, Italy have affirmed that drones still have the same legal protections as any other personal property, even when trespassing.

A local aerial photography company was demonstrating their microdrone at the University of Bologna (presumably beyond line of sight without FPV) when it lost GPS signal and performed a failsafe landing on an unnamed student's terrace. The student then made the unfortunate decision to put the craft up for sale on an Italian auction website for €1000, a crime which could earn him a year in jail.

Property laws are similar throughout the western world, but I suspect that the owners of this supposedly $40000 drone got more help from the Italian postal police than I would get from my local police if I lost my cheap foamy. Despite that, I think I'll make a "keeping lost property is a crime" sticker for it, just in case one day the threat of jail time encourages someone to help reunite me with my plane.

Read more…

Determining Altitude AGL Using Optical Flow

3689503418?profile=originalYou are probably familiar with optical flow sensors which provide extremely precise measurement of ground speed (and therefore position) for quadcopters and computer mice.  The PX4FLOW is the most-recent example but there are many others.

3689503430?profile=original

How it works

The optical flow sensor provides a 2D measurement of the angular speed of the image that is moving through its field of view, which is perfect for a mouse but by itself not that useful for a free-flying robot. It cannot differentiate between a near thing moving slowly, a far thing moving quickly, or its own camera rotating. Optical flow must be integrated with other kinds of sensor data for it to make sense in 3D space.

For those familiar with trigonometry, the diagram at right provides an intuitively-correct way of understanding how the various sensors are integrated, and how it can be possible to calculate an unknown value from known measurements.

  • Point C represents the center of the optical flow sensor’s view.
  • Length b is the current altitude above ground level (AGL) as reported by sonar.
  • Angle α is the raw optical flow, minus the current pitch rate as reported by the gyro. (Pitching up or down changes the viewpoint of the sensor, adding to the optical flow. We have to subtract this out to get a grounded measurement.)
  • Length a is the ground speed of the craft.

So, given altitude from sonar, pitch rate from the IMU, and optical flow, we can calculate ground speed.

3689503350?profile=originalWhile helpful for visualizing the math, the trigonometric method is only actually correct at α = 0. At α = 90°, a and h hit infinity, which is obviously nonsense. To calculate the actual distance traveled, you must calculate the sum of the movement across point C, which, when you do the calculus, ends up being the exact same formula used to calculate the length of the curved section of a circle segment. I've illustrated this with the second diagram at right.

It might seem that adding that curve to the equation has hopelessly complicated things, but in reality it makes the equation simpler, with no trigonometric functions at all. If I take out the obvious unit conversions, it looks like this:

ground speed = (optical flow - pitch rate) × altitude

A problem, and a solution

In the above formula altitude is a known value directly measured by sonar. Sonar works well in quadcopters and other craft which fly in a hover regime, but tends to be much less reliable in planes, where accurate AGL measurement is probably even more important, especially for landing.

Fortunately, ground speed is not an unknown in planes. GPS and airspeed measurements provide highly-accurate ground speed measurements (there are errors but they’re small compared to the higher speed of the craft). With ground speed solved, we can use basic algebra to move the terms around and solve for a different unknown:

altitude = ground speed / (optical flow - pitch rate)

Thus, we have a reliable and accurate measurement of altitude which works at even greater range than sonar.

Work to be done

The new PX4FLOW has its own sonar altimeter and gyros and performs all sensor integration internally. To add ground speed as an input and altitude as an output, one of the following will need to occur:

  • Autopilot reports ground speed to the PX4FLOW, which then integrates it with its own sensors and sends back the calculated altitude, or
  • PX4FLOW reports raw optical flow rates to autopilot. All other PX4FLOW sensors are turned off. Autopilot integrates optical flow with its own sensor data, providing improved accuracy of altitude, ground speed, position, and winds aloft.

The second option is the winner in my opinion, as it enables drop-in use of less complex optical flow hardware. I really don’t understand why a redundant IMU was placed on the PX4FLOW in the first place.

Please note that I’m not in a position to do this work myself. My own plane does not have any optical flow sensor, and probably won’t for a long time.  I’m OK with hard landings. I’m just offering the math that you’ll need to implement your own.

Caveats

You may find that your optical flow sensor stops sending intelligible data as the ground gets close. This problem is also encountered with sonar, which has a minimum measurable distance due to the sensor deafening itself while generating the same sound that it needs to listen for. Optical flow fails for a different reason. If we solve for a different unknown we can see why:

optical flow = (ground speed / altitude) + pitch rate

As altitude approaches zero, optical flow will approach infinity. I don’t know the limits of the PX4FLOW (and I don’t have one to test) but I assume the limits are lower than you would want. There are several solutions to mix and match:

  • Install flaps, land at slower speeds.
  • Mount the optical flow board higher, perhaps under a wing instead of the belly.
  • Install a wider-angle lens on the optical flow sensor. The PX4FLOW camera has a 16mm focal length. A shorter lens will widen the view and reduce the detected optical flow. Use simple lenses only, not fisheye/GoPro/FPV, as geometric distortion will cause bad results. Do not use any lens which causes vignetting (black corners) as you will then need to digitally reduce the sample area which will defeat the purpose.
  • Solve it in software: Before landing, collect terrain data with a fly by, continue to measure altitude as long as possible on approach, and complete the landing the using the other available sensors.
Read more…

HobbyKing Selling ArduPilot Parts

22315.jpg

HobbyKing is now selling much cheaper versions of some 3DR products:

31135.jpg?width=280
31137-2.jpg?width=280

(*This is an update of my old post which only referred to the two products available at that time.)

The latest addition to the list is especially well-timed because the 3DR Radio Telemetry Kit is currently out-of-stock, making HK the only place to get this item at any price right now. This could bring a welcome change to the tone of the DiyDrones Twitter feed as buyers stop venting their frustration with shortages and simply buy elsewhere.

HobbyKing changing strategies?

Even as HobbyKing is adding more ArduPilot accessories, the MultiWii and MegaPirate autopilots which they were selling are now being liquidated or have already been removed from the site entirely. It is easy to imagine that this pullback is the result of the rather infamous support nightmare they suffered when the entire run of MegaPirate boards shipped with an unworkable voltage regulator installed.

This shift in autopilot lineup could mean that HobbyKing has decided to get out of the autopilot business, sticking with accessories and staying away from complicated autopilots which have so many parts that can fail. A more likely explanation is that HobbyKing just wants an autopilot solution that works, and they're clearing the shelves to make room for something else, maybe ArduPilot, but probably DJI.

Personally, I like to imagine that somebody at HobbyKing is a rabid ArduPilot fan who clones a different 3DR part every time 3DR goes out of stock, just to make sure he can always get his fix.

Your ideas?

Last time I posted on this topic, I was expecting a rather dry discussion of the effect of clone manufacturing on the 3DR business model. That suggestion was rightly ignored, so this time I'll just ask: Do you plan to buy any clone hardware yourself?

For myself, I think my next purchase will be a 3DR PX4 with HobbyKing's telemetry and GPS. Frankly, buying the autopilot feels like enough of a donation to the developers without paying double for the accessories, as well.

Read more…