ControlTheory

From PaparazziUAV
Revision as of 07:21, 13 November 2009 by Poine (talk | contribs)
Jump to navigation Jump to search

Dynamic Systems

State Estimation

In order to be able to control a vehicle, ie to steer it along a trajectory, a first prerequisite is to know its state. Typically, sensors are used to obtain this information. Sadly, sensors won't give you a straightforward knowledge of the state of the vehicle. The information is likely to be partial ( we have an altitude sensor, but nothing to measure vertical speed) and will also likely contain "errors" (bias, noise, latency, etc... ). You can always get more sensors or better sensors, but there's no such thing as a perfect sensor. The process of reconstructing the state of a dynamic system using a number of incomplete and erroneous measurements is called state estimation or state observation.

Let's start with an example :

We are interested in controlling the altitude of a vehicle. We measure this altitude using for example a barometer. As we will see later, the vertical speed of the vehicle is a mandatory information in order to be able to achieve a satisfactory control. So, how do we obtain the vertical speed information ?

Direct Differentiation

A first idea would be to take the difference between two consecutive altitude measurements and divide that quantity by the time between the two measurements. This is indeed a bad idea. Let's see one of the reasons why.

Our barometer being a real world instrument, it will give us noisy measurements ( think electrical noise, etc...). Let's use a little simulation to see what happens when you differentiate noisy measurements:

Se ex1.png

The noise gets amplified by the division by the sampling interval ( and we did not even introduce inaccuracy in that sampling interval ).