Changes between Version 1 and Version 2 of sinus


Ignore:
Timestamp:
Feb 6, 2019, 5:24:51 PM (21 months ago)
Author:
Sanahuja Guillaume
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • sinus

    v1 v2  
    4040Calling ''make'' compile both real time and non real time version of the demo.
    4141
     42=== Generate and compile it alone ===
    4243
    43 == Exécution du programme sur le PC ==
     44You 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.
    4445
    45 === station sol ===
     46The 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
     55It will compile for x86_64 architecture. To compile for a different architecture, go to the corresponding directory, for example:
     56{{{
     57$ cd build_armv5te
     58or
     59$ cd build_armv7a_neon
     60or
     61$ cd build_cortexa7thf_neon_vfpv4
     62}}}
     63
     64== Execution on a PC ==
     65
     66=== ground control station ===
    4667
    4768{{{
     
    4970}}}
    5071
    51 === programme ===
     72=== program ===
    5273
    53 Ouvrir un terminal et exécuter le programme via son script:
    5474{{{
    55 $ cd $FLAIR_ROOT/flair-src/demos/Sinus/build/bin
     75$ cd $FLAIR_ROOT/flair-bin/demos/x86_64/unix/Sinus/
    5676$ ./Sinus.sh
    5777}}}
    5878
    59 Ce script, comme pour la station sol, permet de lancer le programme avec un certain nombre d'arguments.
     79This script, as or ground control station, launch the program with some arguments.
    6080
    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).
     81Note that the script also detects if the system uses Xenomai or not, in order to launch the corresponding program version (real time or not).
    6282
    63 ==== réglages ====
     83==== setup ====
    6484
    65 A l’exécution du programme, la station sol doit se construire et faire apparaître les réglages et les graphes.
     85When executing the program, the ground control station should construct itself and show setup and graphs for the sinus.
    6686
    67 == Exécution des programmes sur la cible ==
     87== Execution on a target ==
    6888
    69 === copie des fichiers sur la cible ===
     89=== copying files to target ===
    7090
    71 A adapter en fonction de l'adresse de votre cible:
     91Adapt it to your target ip address and architecture:
    7292{{{
    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:
    7494}}}
    7595
    7696x is the drone number, from 18 to 63.
    7797
    78 === exécution ===
     98=== execution ===
    7999
    80 ==== coté PC (station sol) ====
     100==== PC side (ground control station) ====
    81101
    82102{{{
     
    84104}}}
    85105
    86 ==== coté cible ====
     106==== target side ====
    87107
    88 Ouvrir un terminal sur la cible et exécuter le programme via le script:
     108Open a terminal on the target and execute the program through its script:
    89109{{{
    90 # ./Sinus.sh adresse_PC
     110# ./Sinus.sh PC_address
    91111}}}
    92 Où ''adresse_PC'' est a remplacer par l'adresse IP de votre PC.
     112With ''PC_address'' your PC IP address.
    93113
    94 Ce script, comme pour la station sol, permet de lancer le programme avec un certain nombre d'arguments.
     114This script, as or ground control station, launch the program with some arguments.
    95115
    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).
     116Note that the script also detects if the system uses Xenomai or not, in order to launch the corresponding program version (real time or not).
    97117
    98 ==== réglages ====
     118==== setup ====
    99119
    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.
     120When executing the program, the ground control station should construct itself and show setup and graphs for the sinus.
    101121