Difference between revisions of "ControlTheory"

From PaparazziUAV
Jump to navigation Jump to search
 
Line 13: Line 13:
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.
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 [[se_ex1]]simulation to see what happens when you differentiate noisy measurements:
Our barometer being a real world instrument, it will give us noisy measurements ( think electrical noise, etc...). Let's use a little [[media:se_ex1.sce|simulation]] to see what happens when you differentiate noisy measurements:


[[Image:se_ex1.png]]
[[Image:se_ex1.png|480px]]


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

Revision as of 06:16, 13 November 2009

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 ).