Modifications

Sauter à la navigation Sauter à la recherche
Ligne 45 : Ligne 45 :     
== Démonstration Appolo Soyuz ==
 
== Démonstration Appolo Soyuz ==
The image below shows the Apollo Soyuz module that was used to take humans to the surface of the moon during the 1970s. The 3D demo we're going to play with shows this same spacecraft (but with less detail).
+
L'image ci-dessous présente le module Apollo Soyuz utilisé pour emporter des humain sur la surface de la lune durant les années 1970. La démontration 3D avec laquelle nous allons jouer montre le même vaisseau spatiale (mais avec moins de détails).
    
[[Fichier:RASP-SENSE-HAT-ASTRO-PI-Mouvement-10.jpg]]
 
[[Fichier:RASP-SENSE-HAT-ASTRO-PI-Mouvement-10.jpg]]
   −
You will need to have your Raspberry Pi and Sense HAT connected to the internet in order to download the required software.
+
Vous aurez besoin de votre Raspberry Pi et d'un Hat Sense connecté sur Internet de façon à pouvoir télécharger les logiciels nécessaires.
   −
Enter the commands below into a terminal window:
+
Entrez la commande suivante dans une fenêtre terminal:
    
  <nowiki>sudo apt-get install python3-pip
 
  <nowiki>sudo apt-get install python3-pip
Ligne 59 : Ligne 59 :  
sudo ./soyuz.py</nowiki>
 
sudo ./soyuz.py</nowiki>
   −
Pi 1 users will have to wait 3 to 4 minutes for this to load. For Pi 2 users it's about 30 seconds. When you see the spacecraft appear on the screen start moving the Raspberry Pi and Sense HAT around with your hands. The the main booster is where the SD card slot is on your Pi.
+
Les utilisateurs de Pi ancienne génération devrons attendre 3 ou 4 minutes pour achever le chargement.  
   −
See if you can get the spacecraft to do the pitch, roll and yaw movements. Refer back to the [https://www.youtube.com/watch?v=pQ24NtnaLl8 video] (''YouTube, anglais'') if you need to remind yourself which is which.
+
30 secondes de chargement seront nécessaires pour les utilisateurs de Pi 2.  
 +
 
 +
Commencez à bouger votre Raspberry-Pi lorsque vous verrez le vaisseau spatiale apparaître à l'écran. Le bruleur principal se trouve du côté du lecteur de carte SD de votre Pi.
 +
 
 +
Voyez si vous pouvez identifier les différents mouvement ''pitch'', ''roll'' et ''yaw''.  
    
The code behind this demo is basically calling the Sense HAT {{fname|get_orientation}} function which accesses the IMU sensor. This then returns three angles between 0 and 360 degrees, one for each axis (pitch, roll and yaw). The spacecraft model is then rotated by those angles so that it points in the same direction. This is all repeating over and over very quickly to maintain the orientation of the model with what the IMU is reporting.
 
The code behind this demo is basically calling the Sense HAT {{fname|get_orientation}} function which accesses the IMU sensor. This then returns three angles between 0 and 360 degrees, one for each axis (pitch, roll and yaw). The spacecraft model is then rotated by those angles so that it points in the same direction. This is all repeating over and over very quickly to maintain the orientation of the model with what the IMU is reporting.
29 917

modifications

Menu de navigation