Changes between Version 1 and Version 2 of sinus
- Timestamp:
- Feb 6, 2019, 5:24:51 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
sinus
v1 v2 40 40 Calling ''make'' compile both real time and non real time version of the demo. 41 41 42 === Generate and compile it alone === 42 43 43 == Exécution du programme sur le PC == 44 You can also generate this project demo where you want, and compile it. Yet, you need to have [wiki:compile_all compiled and installed] Flair libs before to have all development files. But it is not necessary to recompile libs each time you want to compile the demo. 44 45 45 === station sol === 46 The following assumes you want to place the project in ''$FLAIR_ROOT/flair-build/mywork/sinus'' 47 {{{ 48 $ mkdir -p $FLAIR_ROOT/flair-build/mywork/sinus 49 $ cd $FLAIR_ROOT/flair-build/mywork/sinus 50 $ $FLAIR_ROOT/flair-dev/scripts/cmake_codelite_outofsource.sh $FLAIR_ROOT/flair-src/demos/Sinus/ 51 $ cd build 52 $ make install 53 }}} 54 55 It will compile for x86_64 architecture. To compile for a different architecture, go to the corresponding directory, for example: 56 {{{ 57 $ cd build_armv5te 58 or 59 $ cd build_armv7a_neon 60 or 61 $ cd build_cortexa7thf_neon_vfpv4 62 }}} 63 64 == Execution on a PC == 65 66 === ground control station === 46 67 47 68 {{{ … … 49 70 }}} 50 71 51 === program me===72 === program === 52 73 53 Ouvrir un terminal et exécuter le programme via son script:54 74 {{{ 55 $ cd $FLAIR_ROOT/flair- src/demos/Sinus/build/bin75 $ cd $FLAIR_ROOT/flair-bin/demos/x86_64/unix/Sinus/ 56 76 $ ./Sinus.sh 57 77 }}} 58 78 59 Ce script, comme pour la station sol, permet de lancer le programme avec un certain nombre d'arguments.79 This script, as or ground control station, launch the program with some arguments. 60 80 61 A noter que ce script détecte également la présence ou non de Xenomai afin de lancer le bon programme (temps réel ou non temps réel).81 Note that the script also detects if the system uses Xenomai or not, in order to launch the corresponding program version (real time or not). 62 82 63 ==== réglages====83 ==== setup ==== 64 84 65 A l’exécution du programme, la station sol doit se construire et faire apparaître les réglages et les graphes.85 When executing the program, the ground control station should construct itself and show setup and graphs for the sinus. 66 86 67 == Ex écution des programmes sur la cible==87 == Execution on a target == 68 88 69 === cop ie des fichiers sur la cible===89 === copying files to target === 70 90 71 A adapter en fonction de l'adresse de votre cible:91 Adapt it to your target ip address and architecture: 72 92 {{{ 73 $ scp $FLAIR_ROOT/flair- src/demos/Sinus/build_arm/bin/* root@192.168.147.x:93 $ scp $FLAIR_ROOT/flair-bin/demos/armv7a-neon/Sinus/* root@192.168.147.x: 74 94 }}} 75 95 76 96 x is the drone number, from 18 to 63. 77 97 78 === ex écution ===98 === execution === 79 99 80 ==== coté PC (station sol) ====100 ==== PC side (ground control station) ==== 81 101 82 102 {{{ … … 84 104 }}} 85 105 86 ==== coté cible ====106 ==== target side ==== 87 107 88 O uvrir un terminal sur la cible et exécuter le programme via lescript:108 Open a terminal on the target and execute the program through its script: 89 109 {{{ 90 # ./Sinus.sh adresse_PC110 # ./Sinus.sh PC_address 91 111 }}} 92 Où ''adresse_PC'' est a remplacer par l'adresse IP de votre PC.112 With ''PC_address'' your PC IP address. 93 113 94 Ce script, comme pour la station sol, permet de lancer le programme avec un certain nombre d'arguments.114 This script, as or ground control station, launch the program with some arguments. 95 115 96 A noter que ce script détecte également la présence ou non de Xenomai afin de lancer le bon programme (temps réel ou non temps réel).116 Note that the script also detects if the system uses Xenomai or not, in order to launch the corresponding program version (real time or not). 97 117 98 ==== réglages====118 ==== setup ==== 99 119 100 A l’exécution du programme sur la cible, la station sol doit se construire et faire apparaître les réglages et les graphes.120 When executing the program, the ground control station should construct itself and show setup and graphs for the sinus. 101 121