Wednesday, November 17, 2010

UGV Autopilot Revisited

We have been working on lots of projects lately, mostly about the UAVs again. Only two hands and all, the last parking lot test that we ran were successful in clear areas. If you just wanted a clear circuit, our simple guidance system was good about being repeatable around 20mph. However, we want to get more in the low end in this, so that we can handle cornering better. The avoidance model is where we are looking for some help.

We are trying to get a working optical flow system to work at these speeds. You can get a working system at low frame rates, but we will need to increase our computing capacity to get it to work successfully at these speeds. Our issue we think, is in the matrix inversions. The determinant terms are making too many things blow up by divisions of small numbers. 

We are looking for anyone with experience getting an effective Kalman filter to work on Android. We have a few older phones, bhat we think would be a good platform for doing 2d control. Yes, I am mixing discussions a bit. If we can better estimate the net acceleration, it would help debug our optical flow system. We are having to bracket our responses so that the AI does not jerk the wheel. This seems to be an  issue. If optical flow can be used to manage the jerk, I think that we can even have moving obstacles in the scene and still reacquire the path with no issue.

It seems to be that the vectors estimated with Kalman divides by zero and runs a huge acceleration and that ruins the math for several iterations. Then the ringing dies out and the system cam go on, by that time we are either running for the hills because a dog liked the truck or because something blew across the scene. I have to find the math error. 

Contour 1080p HD helmet cam

So far so good with the helmet cam. We have been playing with its high frequency stabilization technology. This is pretty effective at taking the jelly and jam out of the motor shakes. Which is a good sign, it is effective at taking out suspension bob when riding a bike, but low frequency motion it can only do so much with. If you move the camera 3" it can't take the shake out of that. You would not really expect it to.

At night, or in low-light conditions it gives a pretty good picture until it is hard to see. Once you break that threshold it is too dim as well. It does have a pretty good sensor, it can pick up even small changes in brightness well and does well with edges.

At the moment, I have yet to get virtual dub to open a quicktime movie. None of the plugins that have been found work. Although I am loathe to say it, it may be better to just go the Quicktime Pro route. Legendary fail of customer support is always a reason why Mr. Jobs' overpriced fanboi kit rarely graces my workspace. It may be a necessary evil this time. Especially, if it can automatically export all of the movie's frames in one drop.

I am not done testing the camera, but so far I recommend it. For the money, it is very usable, rugged and has a functional output that is good for tv viewing. Reliving past exploits are always a great way to kill  time while you lie to yourself about  how good you were.

Wednesday, October 27, 2010

Countour HD Helmet Cam

We are looking into using the Contour HD helmet cam as the data source for some GIS experiments. After a detailed review of available products, we found the Contour. It is a well-received  and rugged helmet cam aimed at mountain biking and snowboarding. Out of the box, it is a well built camera with an interesting rubberized back cover that gives access to the battery and the memory card in one flip of the thumb.

I will see about posting the movies that were shot with the camera. The output is a QuickTime movie, that we will feed to virtual dub. Virtualdub will strip the frames out of the movie so that we can analyze frames to look for patterns in the vegetation. The goal is to make a semi-automated habitat estimator and/or plant specie histogram.

As my batteries run low at dinner, I promise more interesting things to come.

Sunday, August 1, 2010

Can't Get It Up?

Hey it happens to everyone...

No little blue pills, but a rainy afternoon is keeping us from seeing how the wings sit in the mount. There is a bit of concern that the lovely tolerance that made the spars so easy to insert, is making life hard for other reasons. It will not be an issue. As long as the system is stiff once it is bolted together. There is some concern that the foam may crush under side-load. That could be fixed but I do not see a good solution that will work.

The fix if necessary is a wing root cap. That is probably a good idea under most circumstances. However, what could it hold to? The thing that was great about the design was that it had little in the way of internal structure, it is foam after all. That may be limiting the usable weight in the end because you cannot make strong mounts between primary parts.

We will see. At the moment I cam going to see if 0.060" piece of Aluminum sheet will tip the system in the right direction. It may need more like 0.090"  to correct the wing tip height. I can't see that until it stops raining enough to take it outside and measure it. Ten foot wingspan makes it problematic to measure in the house. Oh yeah, it is being built in a 900ft^2 apartment that I live in at the same time. It is a good drill for the initial facilities that I will have in CZ. I will dream of the day of such a large place.

More to come...

Sunday, July 25, 2010

Lifting Bodies Are More Than Just Another Pretty Shape - Opinions on Aircraft Design

Lifting Bodies Are More Than Just Another Pretty  Shape - Opinions on Aircraft Design

There are many ways to look at aircraft design. Most of which are field dependent, why design for supersonic flight if your device will never climb above 500'? It would be cool thought, right? I digress, if you are designing for normal flight regimes you will be operating at an altitude with an engine power curve which will vary by altitude and temperature. Now, if you are designing in other regimes, you need to know where you can get small performance boosts where they are available.

Managing wing thicknesses is and use the concept of "wing tip thrust". By making tip vortices more manageable there is a significant reduction in overall wing drag. This "free" reduction in drag is called "wing tip thrust". Like this, there is another simple idea to take into account. If you can design a fuselage that is not pressurized with an essentially flat belly, you can play some shape games. These shape games can effectively make a Clark-Y airfoil. Now it is more complicated than this, but if you begin your mental experiments from this perspective, you can eek out some under-represented performance.

But how do he do it? It is all in the magic. If lift is generated by circulation of a lift envelope, that is created by the difference in pressure created by fluid moving around a shape. Why not generate lift around your fuselage? It will not get you 25% of your lift... but if your fuselage planform area is 15% of your wing area and you can get 40% efficient lift out of minding your p's and q's you could be looking at 6% more total lift. Yeah, you are right, this is all pie in the sky stuff. However, if you could generate 2-3% more lift for the length of your flight, you could reduce the angle of attack on your wings and trim out your drag. Reducing your drag means that you use less energy in the case of electric or less fuel in the engine.

Less fuel means that you can carry more, or fly farther. Nice. 1-2% may not be a lot if you weigh 4oz. . However, if you are looking at varying wind conditions or being able to react to changing conditions and you can play some games about fuselage profiles. Why not, it is not really so hard to get as much as 5-6% out of playing your profiles against each other. That makes for a good amount more flight time in rc. Not the 7min guys, but as you go for 20min... you get 21min. Yeah, it does not sound like much, but if it makes your fun go for 22min... It will be worth it.

Why do I pick Clark-Y? They have flat bottoms, reasonable thickness and a fast taper to the trailing edge. Construction-wise they are easy to construct, because you can lay them on a table. Their CL/alpha is pretty steep, so 1-2deg can get you something and if you can play with what level is, you can get a fuselage angle of attack to a point where you can make some dividends. Most importantly is that they do not separate their boundary layer fast. Most designs will never get to a critical angle of attack, drag will eat you alive if you fly your fuselage at such a high angle of attack.

We make lots of 60" fuselages these days with a mean 12" beam. That gets us an additional 4-5lbs of lift at take off and 1-2 lbs at cruise. Nothing to write home about, NASA will never give me a Ph.D. for it, but it does get me lots of "clever"s and "I would not have thought of that"s. Pretty high praise in engineering circles.

Saturday, July 24, 2010

Fuselage Design Schemes - Vertical Tails do not Make Your Ass End Look Better

Lots of things cross my mind when I start putting pen to paper on a new fuselage. Mostly, it is about needs to go inside, and then how to build it. Over the last few generations of this design, it has become clear that slow-speed, heavy lift (payload/fuselage <0.7) We start to see several key principles begin to precipitate. Today we will focus on the differences in aircraft balance schemes.

Aesthetically, I am not a vertical tail man. They are functional and in many designs they are necessary. My career began in the low-observability sphere. So a large perpendicular plate nailed to the end of your vehicle who is trying to hide invites bigger radar returns. In most of my training and experience, we get away from this with large sweep angle wings and oblique surfaces. Sometimes, these choices do impact performance. If you are working against sines of the angle, you will always have more surface area to get the same net effect.

Balancing the vertical surface weight and the total surface area is always a game. If you look through Jane's for modern high performance, low-observable aircraft, you will see a common theme of split tails. Two tails, let a designer get a net effect and still not have a large single vertical surface. Ok, yeah it weighs more sometimes this is necessary and even suggested.

These principles are not necessarily limited to high-performance  aircraft. Just trying to keep the sail-area down on the aircraft is important. Otherwise it is blown all over the sky like a potato chip in a hurricane. If you are trying to make a vehicle that can stay on station it is easy to fly a slow  constant angular speed turn with a bit of roll angle, rather than balancing a lot of rudder input and trying to fight the wind the whole time and flying search patterns. Sweep angle also lets designers move the center of pressure around for the wing alowing for different internal position management of work payloads.

Many designs on which I have worked use low angle wing tips instead of a vertical tail. Highy-swept low speed wings get most of their roll control from the wing sweep and large ailerons or spoilerons are goos at helping with pitch contro. One interesting solution is coined a "duckeron". I cannot vouch for the scientific nature of the name. A "duckeron" or even a "quackeron" is a surface that consists of a pair of  tip-mounted surfaces at the far end of each aieron. These surfaces open and increase the drag on the wing tip. This is a bit counter intuitive, unike spoilers which run along the span of the wing these are actuay on the trailing edge of the wing and allow for effective yaw control. Sweep helps increase the distance between the wing tip and the aircraft center of gravity. This is the moment arm distance used to calculate the force applied to yaw the aircraft.

It is a pretty clever idea and allows for reduced cross-section yaw control. On rc models and small UAVs the duckeron is a simple single-servo-per-side solution. Rather than only connecting a single surface to the servo arm, you use a pair of rods. As the arm swings pushing the rods away from the hing line opening the surfaces equally. However if there is a clearance issue, the ratio of the opening rates can be changed via a cam or simply varying the lengths of the rods. A shorter rod needs more arm sweep to move the surface through a given range. The air disruption over the wing would make the use of a spoiler less effective. There could be several reasons to use spoilers and ducks at the same time for different flight control cases.

You do have to take into account that the drag at the tip may be an unplanned load on your wing spar. One other kind of side-benefit of using ducks is that they act as airbrakes during landing, even as a counter-balancing yaw force during approach. As a counter-balance on approach you would pay a much steeper drag penalty than a rudder, but they woud be able to apply a much larger yaw force.