• Aucun résultat trouvé

Accelerometers on Quadrotors : What do they Really Measure?

N/A
N/A
Protected

Academic year: 2021

Partager "Accelerometers on Quadrotors : What do they Really Measure?"

Copied!
11
0
0

Texte intégral

(1)

HAL Id: hal-01184755

https://hal.archives-ouvertes.fr/hal-01184755

Submitted on 17 Aug 2015

HAL is a multi-disciplinary open access archive for the deposit and dissemination of sci- entific research documents, whether they are pub- lished or not. The documents may come from teaching and research institutions in France or abroad, or from public or private research centers.

L’archive ouverte pluridisciplinaire HAL, est destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des établissements d’enseignement et de recherche français ou étrangers, des laboratoires publics ou privés.

Accelerometers on Quadrotors : What do they Really Measure?

P Martin

To cite this version:

P Martin. Accelerometers on Quadrotors : What do they Really Measure?. Aerospace Lab, Alain Appriou, 2014, p. 1-10. �10.12762/2014.AL08-06�. �hal-01184755�

(2)

Aerial Robotics

P. Martin

(Mines ParisTech)

E-mail : philippe.martin@mines-paristech.fr DOI : 10.12762/2014.AL08-06

Accelerometers on Quadrotors : What do they Really Measure?

A revisited quadrotor model is proposed, including the so-called rotor drag. It differs from the model usually considered, even at first order, and much better explains the role of accelerometer feedback in control algorithms. The theoretical derivation is supported by experimental data.

Introduction

Quadrotor control has been an active area of investigation for several years. On the one hand, the quadrotor has several qualities, among them its very simple mechanical design, and qualifies as a viable con- cept of mini Unmanned Aerial Vehicle (UAV) for real-life missions ; on the other hand, it is perceived in the control community as a very rich case study in theoretical and applied control. The first control objec- tive is to ensure a stable flight at moderate velocities and, in particular, in hovering; this fundamental building block is then used to develop higher-level tasks.

However, for experiments designed to work only in the lab with an off-board measuring device, e.g. [1], quadrotors all rely at the heart on strapdown MEMS inertial sensors (gyroscopes and accelerom- eters). These inertial sensors may be used alone (as far as horizontal stabilization is concerned) [2], or supplemented by other sensors, which usually provide some position-related information. Representa- tive designs are: ultrasonic rangers [3]; (simple) GPS module when outdoors and infrared rangers when indoors [4] ; carrier phase differ- ential GPS [5]; laser rangefinder [6]; vision system [7], [8], [9] ; laser rangefinder and vision system [10], [11]. Unfortunately those extra sensors have inherent drawbacks (low bandwidth, possible tempo- rary unavailability, etc.), hence inertial sensors remain essential for basic stabilization.

Nearly all of the papers in the literature rely on the same physical model: only aerodynamic forces and moments proportional to the square of the propeller angular velocities are explicitly taken into account. Other aerodynamic effects are omitted and considered as small non-modeled disturbances to be rejected by the control law.

The reason put forward is that these effects are proportional to the square of the quadrotor linear velocity, hence very small near hover- ing. Few authors explicitly consider other aerodynamic effects : [12]

notes the importance of flapping stability derivatives; [13] and [14]

consider aerodynamic effects without physical motivation linear with respect to the quadrotor linear and angular velocities, but propose very small numerical values; [5] judges them to be negligible at low velocities, and focuses on nonlinear aspects at moderate velocities;

[15] physically motivates the presence of effects that are nearly linear with respect to the quadrotor linear and angular velocities, but pro- vides no experimental data and is concerned only with the open-loop system.

Figure 1 - Our home-built quadrotor : the “Quadricopter”

On the other hand, the accelerometer measurement vector a can be used in two different ways (gyros are used in both cases ; see page 4 for more details about inertial sensors):

1) as an input, directly in the equation V g a  = + if extra sensors pro- viding position or velocity information are available, using a sensor fu- sion algorithm that estimates the velocity and the pitch and roll angles

(3)

2) as an output, through the approximation a≈ −g. Accordingly, the pitch and roll angles are estimated by a sensor fusion algorithm.

Commercial “attitude sensors”, such as the 3DM-GX1 or the MTi2, run exactly on this principle.

In both cases, the sensor fusion algorithm can be an Extended Kalman Filter (EKF), a complementary filter, linear or nonlinear, or a nonlinear observer; see for example [16], [17] for an account of the two cases.

Recall that MEMS inertial sensors are not accurate enough for "true"

Schuler-based inertial navigation, see for example [18, Chap. 5] for details.

Now, a puzzling issue arises: the "conventional" physical model im- plies that the longitudinal and lateral (in body axes) accelerometers should always measure zero, which clearly contradicts 2) ; as for 1), even if no particular form of the accelerometers measurements is assumed, one may wonder about the interest of using measurements known to be zero (in addition corrupted by noise and biases). Never- theless, many successful quadrotor flights have been reported, with control laws based on 1) or 2), or even both, and there is no question that using accelerometers is beneficial.

This paper, which largely draws on [19], proposes a "revisited"

model containing extra aerodynamic terms proportional to the propel- ler angular velocity times the quadrotor linear or angular velocity. In particular, the so-called rotor drag, though rather small, appears at first order and is essential to correctly account for the accelerometer measurements.

The paper is structured as follows: the revisited model is derived in next section ; its main features are experimentally validated then ; finally, its implications for control schemes are discussed.

A revisited quadrotor model

Model of a single propeller “near” hovering

We first consider a single propeller rotating with angular velocity ε ωi i around its axis k ; b ωi is positive, with ε1=1 (resp. -1) for coun- terclockwise (resp. clockwise) rotation. Due to the motion of the quadrotor, the geometric center A1 of the propeller moves with lin- ear velocity VAi

, while the rotor plane (by definition perpendicular to kb

) undergoes angular velocity ; the total angular velocity of the propeller is thus+ε ω1 i b\k

. A lengthy derivation in the spirit of for example [20, in particular Chap. 5] shows that the aerodynamic ef- forts on the propeller resolve into the force Fi

and moment Mi at Ai,

2

i i b i 1 Ai 2 b

F = a k ω ω λ( V + λ×k ) ε ω λi i( V ×k +3 Ai b λ4)

(1)

2

i i

i i b i i 1 A 2 b

M = b ε ω k ε ω µS ( V + µΩ× k ) ω µ1( V3 Ai×k +b µ4)

(2) where a,b, the λis and µ s are positive constants ; the projection of i, a vector U

on the rotor plane is denoted by

( ) ( )·

b b b b

U =k × U k× = −U U k k  

Moreoverλ2andµ2are very small (they would be exactly zero if the blade axis were orthogonal to kb

). Notice that all of the force and moment terms orthogonal to kb

arise from the velocity imbalance of the blade on a complete turn (because of the translational motion, the blade moves faster with respect to free air when it is advancing than when it is retreating).

The above relations rely on classical blade element theory, with two extra assumptions:

the propeller is considered to be perfectly rigid, which is approxi- mately true for most quadrotor propellers. The flapping due to the slight flexibility of a real propeller has only a marginal effect ;

the components of the linear velocity

Ai

V

are considered small with respect to the propeller tip speed ; similarly the components of the angular velocity are considered to be small with respect toωi. This is valid "near" hovering, i.e., for "small"

Ai

V

and : typically, the tip speed is of about 50 .m s1, so that 10 .m s1can still be seen as a "small" velocity.

The velocities in the previous equations are of course velocities with respect to the air stream, not with respect to the ground. They coin- cide when there is no wind, which we assume in the sequel.

The term ωiλ1VAi

in (1) is often called H-force or rotor drag in the helicopter literature. Also notice that the simplified expressions (1)- (2), though directly based on textbook helicopter aerodynamics, do not seem to appear in the literature under this compact form, very handy for control purposes. The reason for this is probably that heli- copter literature is primarily concerned with articulated and/or rather flexible propellers, operating moreover at much higher ratios of linear velocity to propeller tip speed.

Figure 2 - Sketch of the complete quadrotor Complete quadrotor model

The quadrotor consists of a rigid frame with four propellers, (directly) driven by electric motors, see figure 2. The structure is symmetrically

1 www.microstrain.com

2 www.xsens.com

F4

F3

F1

A2

A4

A3

A1

F2

k0 j0 i0

kb

C

ib

ib

(4)

arranged, with one pair of facing propellers rotating clockwise and the other pair rotating counterclockwise. The four propellers have the same axis kb

.

3 1 3 1

b A A

i = A A



 

 , 4 2

4 2

b A A

j A

= A



 

 and kb

thus form a direct coordinate frame.

Let A be the geometric center of the A's1 and 1 3 1 1 2 4;

2 2

l= A A = A A clearly, 4

1 i

i= AA =0.



The whole systemB, with mass m and center of massC, thus involves five rigid bodies : the frame/stator assembly B0 and the four propeller/motor assembliesBi. Clearly CA h= kb

for some (signed) lengthh; notice that for most quadrotor designs h is very small. Resolved in the (i ,j ,k b b b) frame, the velocity of C is written as V =ui +uj ivkC  b b+ b and the angular velocity of B0 is written as

b b b

pi qj rk Ω = + +

We assume that the only efforts acting on B are the weight and the aerodynamic efforts created by the propellers, as described in the previous section. In particular, we neglect the drag created by the frame, which is quadratic with respect to the velocity, hence small at low velocities with respect to the rotor drag. Newton’s laws for the entire system are thus written as

4

C 1 i

i

m V = m g + F

=

(3)

4

C 1 i i i

i

= CA× F + M σ

=

B (4)

where σCB = CM ×CMd Mµ( )

B is the kinetic momentum of B.

For each Bi, we can further write

i

i b i b i i

A ·k =M ·k +

σB ε Γ (5)

where ii ( )

i i

A A M A M d M i µ σB =  ×

B is the kinetic momentum of Biand Γi is the (positive) electromagnetic torque of the motor. For sim- plicity, we have considered Ai as the center of mass of Bi(in fact the two points are slightly apart). We also consider the Γis as the control inputs (it is nevertheless easy to include the behavior of the electric motors, both for modeling and control).

We now evaluate the right-hand sides of (3)-(4). Since

Ai C i C b i

V =V +CA+AA  =V +h ×k + ×AA 

we have

4

) 4 3 Ai b

3 C b i b

3 C b 4 3 i

V ×k

= ( V +h k AA k

= V k + ' +r AA

λ λ Ω

λ λ Ω

λ λ Ω λ

+

× + × × +

×





2

) ( ) 2

1 Ai b

1 C b i b

1 C 2 b 1 i b

V + k

= (V +(h k AA k

= V + ' +k - r AA k

λ λ Ω

λ λ Ω

λ λ Ω λ

×

× + × + ×

×





where we have used the fact that AAi

is collinear to either ib or jb

, and setλ'2=λ1+hλ1 and λ'4=λ4+hλ3. Therefore,

4 4 4

2 1 2

1 1 1

4

3 4

1

4 4

1 3

1 1

4 4

2 1 2

1 1

( ' )

( ' )

( '

i i b i C b

i i i

i i C b

i

i i b i i

i i

i b i C b

i i

F a k V k

V k

r AA k r AA

a k V k

ω ω λ λ Ω

ε ω λ λ Ω

λ ω λ ε

ω ω λ λ Ω

= = =

=

= =

= =

 

= −   + ×

 

× +

+ × −

 

≈ −   + ×

 

 

)

In the last line, we have neglected small terms according to the sec- ond extra assumption of the single properller model. Indeed, in hover- ing VC and Ω

, hence VAi

are zero ; from (1)–(4) this implies that

2 2 2 2

1 2 3 4

( )

aω +ω +ω +ω =mg

and ω12ω22+ω32ω42=ω12ω32=ω22ω42=0, and eventually

i mg4

ω = =ω a .

As a consequence i41 i i,1 i41 iA i

l A

ε ω ω

= =

and 41

1 i i i,AAi l= ε ω 

also vanish in hovering ; “near” hovering they are therefore small with respect to4i=1ωi.

Similar computations yield

4

1

4 4

2 2

1 1

4 4

12 1 1 3 4

1 1

( ' " )

i

i i i i

i

i i b i i b

i i

b C b

i i

CA ×F +AA ×F M

a AA ×k b k

r l k V ×k

ω ε ω

λ ω ω µ µ Ω

=

= =

= =

+

≈ −

+

 

 



whereµ'3=µ3 hλ1andµ"4= + h(µ4 µ1+λ' )2 .

Notice that the contributions of λ λ3, 4 in the forces (1) and of µ µ1, 2 in the moments (2) (nearly) cancel out in the right-hand sides of (3)- (4), due to the fact there are two clockwise and two counterclock- wise-rotating propellers.

We then evaluate the left-hand sides of (3)–(5). The approach is fairly standard.

1

4 1

4 1

(

O

O

i

C

i

i i i b i

i

i i

= CM× d (M)

= CM× d (M)

+ CM×( + ) d M)

= CM×( ×CM ) d (M)

+ CM×( ×CA +( + k )×A M CM

CM

CA A M

) dµ(M)

= CM×( ×

σ µ

µ

µ

µ

Ω ε ω

=

+

∑ ∫

∑ ∫







 





 



 





B B

B

B

B

B

B

1

4 1

4 1

4 1

( .

(

i i

i i i b i

i

C i i i A b

b b r i i i b

CM )d (M)

+ A M×( k ×A M ) d M)

= ( .k )

=Ipi Iqj Jr J )k

µ

ε ω µ

ε ω

ε ω

=

=

=

+

+ + +

∑ ∫



 

B

B B

where I; J; Jr are strictly positive constants. In the last equation, in the computation of the inertia tensors i

Ai

,

B B we have replaced

(5)

In (6)–(7) we have assumed λ'2= + hλ2 λ ≈1 0, which is sensible since λ2 and h are nearly 0 (notice that λ ='2 0 can always be enforced by slightly shifting the center of mass). Finally, the angles and angular velocities are linked by

cos

= p+(q sin +r cos )tan

=qcos r sin q sin +r cos

=

φ φ φ φ

θ φ φ

φ φ

ψ θ

Equations (6)–(15) form the complete 13-dimensional nonlinear model of the quadrotor.

A further simplification is to replace 4i=1ωiby 4ω in (6) – (12) since ωi remains close to w in normal flight and moreover use the fact that the propeller moment of inertia Jr is very small with respect to J I ; this yields

1

1

4 2

1

2 2

4 2 3 4

2 2

4 2 3 4

2 4

1 1

2 2

1 1

sin 4 sin cos 4 cos cos

( ) ( )4 ( ' " )

( ) ( )4 ( ' " )

4

4 , 1,

i i

i i i

r i i i

u qw rv g u

m

v ru pw g v

a m w pv qu g

m

Ip J I qr a v p

Iq J I qr a u p

Jr l r

J l Jrr b i

J

θ ωλ φ θ ωλ

φ θ ω

ω ω ω µ µ

ω ω ω µ µ

ω λ ε Γ

ω ε ωλ Γ ω

=

=

+ = −

+ = −

+ =

+ = +

+ = +

= −

= =

2,3,4

Equations (16)–(22) can be used instead of (6)–(12) with no notice- able loss of accuracy.

Model of the inertial sensors

The quadrotor is equipped with strapdown triaxial gyroscope and ac- celerometer. Without restriction, we assume that the sensing axes coincide withi j k b, , .b b

The gyroscope measures the angular velocity

, projected on its sensing axes, i.e., (g ,g ,g )=(p, q, r),x y z the accelerometer measures the specific acceleration a = V Pg of the point P where it is located, projected on its sensing axes; see for example [18, Chap. 4] for details on inertial sensors. Hence, by (3) if the accelerometer is located at the center of mass C, which is the case for most quadrotors, it measures

4 1

C 1 i i

a = V g= F

m =

by (3), the accelerometer thus measures

1 1 2 3 4

1 1 2 3 4

2 2 2 2

1 2 3 4

. ( )

. ( )

. ( )

x b

y b

z b

a a i u

m

a a j v

ma a a k

m

λ ω ω ω ω λ ω ω ω ω

ω ω ω ω

= = − + + +

= = − + + +

= = − + + +

the actual propellers by disks with the same masses and radii, and

taken advantage of the various symmetries ; this "averaging" approxi- mation is justified by the fact that the propeller angles vary much faster than all of the other kinematic variables (besides, this approxi- mation is already heavily used in the blade element theory used to derive (1)-(2)). Using the same approximation,

( )

( ) ) ( )

.( )

( )

i

i i

i i i

i i

A

i i i b i

i i b A

r b r b r i i b

= A M A M dµ M

= A M k A M dµ M

= k

=I pi I qj J r k σ

Ω ε ω Ω ε ω

ε ω

×

× + ×

+

+ + +

 

 

B B

B

B

where Ir is a strictly positive constant. Eventually,

4 1 4

1 4

1

( )

.

. ( )

.

i i

C b C b

C b

r i i i

C b

C b r i i i

C b r i i i

C

V ·i u qw ru V . j = v ru pw w pu qu V · k

Ip J I qr J q i

j = Iq J I pr J p k Jr J

σ ε ω

σ ε ω

σ ε ω

σ

=

=

=

+

+

  +

 

+ +

 

  + +

 

 

  +

 

 

 









B B B

B.k = J rb r( +ε ωi i) i=1,2,3,4

To describe the orientation of the quadrotor, we use the classical φ θ Ψ, , Euler angles (quaternions could of course be used). The di- rection cosine matrix Rφ θ Ψ, , to convert from Earth coordinates to aircraft coordinates is then

C C C S S

S S C C S S S S C C S C C S C S S C S S S S C C

θ ψ θ ψ θ

φ θ ψ φ ψ φ θ ψ φ ψ φ θ φ θ ψ φ ψ φ θ ψ φ ψ φ θ

+

+

so that g g i= −( sinθ+ j sin cosφ θ+k cos cos )φ θ . Collecting the previous findings (3)–(5), we eventually have

1 4 1 1 4

1

4 2

1 4

1

2 2 ' '' 4

1 3 3 4 1

4 1

2 2 '

3 i i

i i

i i

r i i i

i i

r i i i

1 3

u+qw rv = g sin u m v+ru pw = g sin cos v

a m w+pv qu = g cos cos

m Ip+(J I)qr+J q

= a( - )+( v+ p) Iq (J I)pr J p

=a( )+( u

θ λ ω

φ θ λ ω

φ θ ω

ε ω

ω ω µ µ ω

ε ω

ω ω µ

=

=

=

=

=

=

− −

'' 4

4 1

4 4

1 1 1

2

i i

r 2 i i i i i

r i i i i

q) (J 4J )r = l

J ( r+ )= b i=1,2,3,4

µ ω

λ ω ε Γ

ε ω Γ ω

=

= =

(6)

(7) (8)

(9)

(10) (11) (12)

(13) (14) (15)

(16) (17) (18) (19) (20) (21) (22)

(23) (24) (25)

Références

Documents relatifs

From a linear feedback to a homogeneous control law The PID (Proportional-Integral-Derivative) controller is the most common linear feedback law for real physical control systems..

Using financial data available publicly, it is shown in this study that the Shanghai Ranking is mostly a ranking of economic capital of HEIs and of the families of students

While most of the Minnesota collection is also available on the Internet, documents from the British American Tobacco Company stored in England are not, except for a small subset

This includes the total number of meta- classes metric, which gives an indication of the size of a metamodel, whilst the total number of concrete meta-classes and the total number

Provincial curriculum setting the stage for physical literacy development. Participants were asked if the current provincial physical education curriculum addressed

In particle case when this family is a group (cyclic or Abelian), these codes are ordinary cyclic and group codes.We deal with GSO- invariant codes with fast code and encode

, 430 where price is the price paid in auction (in million $ ), area is the area of the painting (height times width, both measured in inches), ratio is the aspect ratio (height

Most of the electromagnetic field detection in the optical domain is per- formed via energy measurements and hardly ever through linear momentum