17
Plan Matériel Architecture logicielle Contrôle des moteurs FQA Kalman Lucas et Kanade Planning Présentation du Projet Copterix Copterix team Télécom Paristech 30 mars 2011 Axel Schumacher Bertrand Chazot Loïc Raucy Samuel Mokrani Copterix team ROSE 1 / 16 30 mars 2011

Présentation du Projet Copterix · 3 Contrôledesmoteurs 4 FQA 5 Kalman 6 LucasetKanade 7 Planning Copterix team ROSE 2 / 16 30 mars 2011. Plan Matériel Architecture logicielle

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Présentation du Projet Copterix · 3 Contrôledesmoteurs 4 FQA 5 Kalman 6 LucasetKanade 7 Planning Copterix team ROSE 2 / 16 30 mars 2011. Plan Matériel Architecture logicielle

PlanMatériel

Architecture logicielleContrôle des moteurs

FQAKalman

Lucas et KanadePlanning

Présentation du Projet Copterix

Copterix team

Télécom Paristech

30 mars 2011

Axel SchumacherBertrand Chazot

Loïc RaucySamuel Mokrani

Copterix team ROSE 1 / 16 30 mars 2011

Page 2: Présentation du Projet Copterix · 3 Contrôledesmoteurs 4 FQA 5 Kalman 6 LucasetKanade 7 Planning Copterix team ROSE 2 / 16 30 mars 2011. Plan Matériel Architecture logicielle

PlanMatériel

Architecture logicielleContrôle des moteurs

FQAKalman

Lucas et KanadePlanning

Plan

1 Matériel

2 Architecture logicielle

3 Contrôle des moteurs

4 FQA

5 Kalman

6 Lucas et Kanade

7 Planning

Copterix team ROSE 2 / 16 30 mars 2011

Page 3: Présentation du Projet Copterix · 3 Contrôledesmoteurs 4 FQA 5 Kalman 6 LucasetKanade 7 Planning Copterix team ROSE 2 / 16 30 mars 2011. Plan Matériel Architecture logicielle

PlanMatériel

Architecture logicielleContrôle des moteurs

FQAKalman

Lucas et KanadePlanning

Matériel

Gumstix OveroTide/FEWifiCaméraTobi : liaison avec notre pcb (UART et reset)

TobiPCB

Copterix team ROSE 3 / 16 30 mars 2011

Page 4: Présentation du Projet Copterix · 3 Contrôledesmoteurs 4 FQA 5 Kalman 6 LucasetKanade 7 Planning Copterix team ROSE 2 / 16 30 mars 2011. Plan Matériel Architecture logicielle

PlanMatériel

Architecture logicielleContrôle des moteurs

FQAKalman

Lucas et KanadePlanning

La Gumstix

UbuntuInstallation de paquetsSystème connu et utiliséLéger grâce à une debootstrap minimale

Copterix team ROSE 4 / 16 30 mars 2011

Page 5: Présentation du Projet Copterix · 3 Contrôledesmoteurs 4 FQA 5 Kalman 6 LucasetKanade 7 Planning Copterix team ROSE 2 / 16 30 mars 2011. Plan Matériel Architecture logicielle

PlanMatériel

Architecture logicielleContrôle des moteurs

FQAKalman

Lucas et KanadePlanning

Notre PCB

IMUAltimètres (Capteur de pression et Sharp)AccéléromètreGyroscopeMagnétomètre

Contrôleur RadiofréquenceContrôle des moteursContrôleur JTAG

But du STM32MultiplexeurTemps réel pour Kalman

Copterix team ROSE 5 / 16 30 mars 2011

Page 6: Présentation du Projet Copterix · 3 Contrôledesmoteurs 4 FQA 5 Kalman 6 LucasetKanade 7 Planning Copterix team ROSE 2 / 16 30 mars 2011. Plan Matériel Architecture logicielle

PlanMatériel

Architecture logicielleContrôle des moteurs

FQAKalman

Lucas et KanadePlanning

Les différents modules

Copterix team ROSE 6 / 16 30 mars 2011

Page 7: Présentation du Projet Copterix · 3 Contrôledesmoteurs 4 FQA 5 Kalman 6 LucasetKanade 7 Planning Copterix team ROSE 2 / 16 30 mars 2011. Plan Matériel Architecture logicielle

PlanMatériel

Architecture logicielleContrôle des moteurs

FQAKalman

Lucas et KanadePlanning

Les communications

Communication interprocessus Gumstix avec 0MQCommunication Gumstix/STM32 via UART

Protocole XModem ou ZModem, ou même familleSimplicité, début/fin de frame, contrôle d’erreur

Copterix team ROSE 7 / 16 30 mars 2011

Page 8: Présentation du Projet Copterix · 3 Contrôledesmoteurs 4 FQA 5 Kalman 6 LucasetKanade 7 Planning Copterix team ROSE 2 / 16 30 mars 2011. Plan Matériel Architecture logicielle

PlanMatériel

Architecture logicielleContrôle des moteurs

FQAKalman

Lucas et KanadePlanning

PID

Asservissement par PID à deux niveaux.Bas niveau : lacet, roulis, tangage, altitudeHaut niveau : déplacement selon x et y

Copterix team ROSE 8 / 16 30 mars 2011

Page 9: Présentation du Projet Copterix · 3 Contrôledesmoteurs 4 FQA 5 Kalman 6 LucasetKanade 7 Planning Copterix team ROSE 2 / 16 30 mars 2011. Plan Matériel Architecture logicielle

PlanMatériel

Architecture logicielleContrôle des moteurs

FQAKalman

Lucas et KanadePlanning

Problème de Wahba

Problème de Wahba : trouver l’orientation spatiale d’un objetpar rapport à une base de référence.Système de coordonnées fixes liés à la terre : xe , ye , ze

Système de coordonnées mobiles : xm, ym, zm

Copterix team ROSE 9 / 16 30 mars 2011

Page 10: Présentation du Projet Copterix · 3 Contrôledesmoteurs 4 FQA 5 Kalman 6 LucasetKanade 7 Planning Copterix team ROSE 2 / 16 30 mars 2011. Plan Matériel Architecture logicielle

PlanMatériel

Architecture logicielleContrôle des moteurs

FQAKalman

Lucas et KanadePlanning

Angles d’Euler

La base mobile peut être exprimée par rapport à la base fixe justepar composition de 3 rotations : autour de son axe z, puis y et enfinx.Copterix team ROSE 10 / 16 30 mars 2011

Page 11: Présentation du Projet Copterix · 3 Contrôledesmoteurs 4 FQA 5 Kalman 6 LucasetKanade 7 Planning Copterix team ROSE 2 / 16 30 mars 2011. Plan Matériel Architecture logicielle

PlanMatériel

Architecture logicielleContrôle des moteurs

FQAKalman

Lucas et KanadePlanning

Quaternions

Représentation de rotations :matrice de rotation 3 ∗ 3. Une par axe puis on fait le produit.quaternion : a + b ∗ i + c ∗ j + d ∗ k = a + ~v avec a ∈ (R) et~v ∈ (R3)

Un quaternion par axe puis on fait le produit

Copterix team ROSE 11 / 16 30 mars 2011

Page 12: Présentation du Projet Copterix · 3 Contrôledesmoteurs 4 FQA 5 Kalman 6 LucasetKanade 7 Planning Copterix team ROSE 2 / 16 30 mars 2011. Plan Matériel Architecture logicielle

PlanMatériel

Architecture logicielleContrôle des moteurs

FQAKalman

Lucas et KanadePlanning

Quaternions

Représentation de rotations :matrice de rotation 3 ∗ 3. Une par axe puis on fait le produit.quaternion : a + b ∗ i + c ∗ j + d ∗ k = a + ~v avec a ∈ (R) et~v ∈ (R3)

Un quaternion par axe puis on fait le produit

Copterix team ROSE 11 / 16 30 mars 2011

Page 13: Présentation du Projet Copterix · 3 Contrôledesmoteurs 4 FQA 5 Kalman 6 LucasetKanade 7 Planning Copterix team ROSE 2 / 16 30 mars 2011. Plan Matériel Architecture logicielle

PlanMatériel

Architecture logicielleContrôle des moteurs

FQAKalman

Lucas et KanadePlanning

Mise en œuvre

Les accéléromètres renvoient :ax = g ∗ sin θtay = −g ∗ cos θt ∗ sin θraz = −g ∗ cos θt ∗ cos θr

Les magnétomètres renvoientles composantes du champmagnétique selon les trois axesdans la base mobile.

Copterix team ROSE 12 / 16 30 mars 2011

Page 14: Présentation du Projet Copterix · 3 Contrôledesmoteurs 4 FQA 5 Kalman 6 LucasetKanade 7 Planning Copterix team ROSE 2 / 16 30 mars 2011. Plan Matériel Architecture logicielle

PlanMatériel

Architecture logicielleContrôle des moteurs

FQAKalman

Lucas et KanadePlanning

Kalman : Pourquoi et comment

Pourquoi :Mesures bruitées venant de l’IMU.

Comment :L’algorithme classique contient une inversion de matrice.Utilisation de l’algorithme séquentiel (sans inversion dematrice)Plus adapté aux systèmes embarqués

Copterix team ROSE 13 / 16 30 mars 2011

Page 15: Présentation du Projet Copterix · 3 Contrôledesmoteurs 4 FQA 5 Kalman 6 LucasetKanade 7 Planning Copterix team ROSE 2 / 16 30 mars 2011. Plan Matériel Architecture logicielle

PlanMatériel

Architecture logicielleContrôle des moteurs

FQAKalman

Lucas et KanadePlanning

Nos variables

État : Xk contientDeux premières colonnes de la DCMLe biais des gyroscopes

Contrôle : Uk contientLes données des gyroscopes

Copterix team ROSE 14 / 16 30 mars 2011

Page 16: Présentation du Projet Copterix · 3 Contrôledesmoteurs 4 FQA 5 Kalman 6 LucasetKanade 7 Planning Copterix team ROSE 2 / 16 30 mars 2011. Plan Matériel Architecture logicielle

PlanMatériel

Architecture logicielleContrôle des moteurs

FQAKalman

Lucas et KanadePlanning

Lucas et Kanade

On dispose de deux images en niveau de gris, A et B , espacéesdans le temps de δt.On cherche à déterminer les vecteurs déplacement de certainspoints d’intérêt.On se donne pour cela une fenêtre de recherche pour chaque pointd’intérêt.Il ne reste plus qu’à trouver le déplacement qui minimise l’erreur :

ε(ν) =

px+ωx∑x=px−ωx

py+ωy∑y=py−ωy

(A(x , y)− B(x + νx , y + νy ))2

On va pour cela annuler sa dérivée.

Copterix team ROSE 15 / 16 30 mars 2011

Page 17: Présentation du Projet Copterix · 3 Contrôledesmoteurs 4 FQA 5 Kalman 6 LucasetKanade 7 Planning Copterix team ROSE 2 / 16 30 mars 2011. Plan Matériel Architecture logicielle

PlanMatériel

Architecture logicielleContrôle des moteurs

FQAKalman

Lucas et KanadePlanning

Planning

30/03 : Fin de l’étude physique (Simulation, Kalman)04/04 : communication gumstix/STM32 (simulée entre PC etcarte TP)04/04 : testbench logiciel et matériel (FQA + Kalman + PID)11/04 : FE et Wi-Fi18/04 : Vol stable22/04 : Déplacement de coptérix25/04 : Contrôle grâce au Wi-Fi et à la télécommande

Copterix team ROSE 16 / 16 30 mars 2011