Changes between Version 4 and Version 5 of sinus


Ignore:
Timestamp:
Feb 13, 2019, 5:27:45 PM (21 months ago)
Author:
Sanahuja Guillaume
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • sinus

    v4 v5  
    99The program generates a sinusoidal signal and low pass filters are added. Everything can be configured through the ground control station. This demo shows how filters are added and updated, and how to draw graphs on ground control station.
    1010
    11 Sources are in [source:flair-src/trunk/demos/Sinus flair-src/trunk/demos/Sinus].
     11Sources are in [source:flair-src/trunk/demos/Sinus flair-src/demos/Sinus].
    1212
    1313__NB__: Filter and !SensorActuator libraries sources are also a good starting point to see how to program with Flair. Yet, they use the [http://c2.com/cgi/wiki?PimplIdiom pimpl idiom], which can be harder to read than this example.
     
    1515== Compilation ==
    1616
    17 There is various ways to compile/recompile it
     17There is various ways to compile/recompile it:
    1818
    19 === Compile among everything (recommended) ===
    20 
    21 Use the [source:flair-dev/trunk/scripts/flair_compile_all.sh flair_compile_all.sh] script using documentation from [wiki:compile_all this page].
    22 
    23 All libs, tools and demos will be compiled for all supported architectures (the ones with an installed toolchain).
    24 
    25 === Recompile only this demo ===
    26 
    27 If you have already done the previous step (compile among everything) and you want to just recompile this particular demo, do the following:
    28 {{{
    29 $ cd $FLAIR_ROOT/flair-build/build/demos/Sinus
    30 $ make install
    31 }}}
    32 
    33 It will compile for x86_64 architecture. To compile for a different architecture, go to the corresponding directory, for example:
    34 {{{
    35 $ cd $FLAIR_ROOT/flair-build/build_armv5te/demos/Sinus
    36 or
    37 $ cd $FLAIR_ROOT/flair-build/build_armv7a_neon/demos/Sinus
    38 or
    39 $ cd $FLAIR_ROOT/flair-build/build_cortexa7thf_neon_vfpv4/demos/Sinus
    40 }}}
    41 
    42 Calling ''make'' compile both real time and non real time version of the demo.
    43 
    44 === Generate and compile it alone ===
    45 
    46 You can also generate this demo's project where you want, and compile it. Yet, you need to have [wiki:compile_all compiled and installed] Flair libs before to have all needed development files. But it is not necessary to recompile libs each time you want to compile the demo.
    47 
    48 The following assumes you want to place the project in ''$FLAIR_ROOT/flair-build/mywork/sinus''
    49 {{{
    50 $ mkdir -p $FLAIR_ROOT/flair-build/mywork/sinus
    51 $ cd $FLAIR_ROOT/flair-build/mywork/sinus
    52 $ $FLAIR_ROOT/flair-dev/scripts/cmake_codelite_outofsource.sh $FLAIR_ROOT/flair-src/demos/Sinus/
    53 $ cd build
    54 $ make install
    55 }}}
    56 
    57 It will compile for x86_64 architecture. To compile for a different architecture, go to the corresponding directory, for example:
    58 {{{
    59 $ cd build_armv5te
    60 or
    61 $ cd build_armv7a_neon
    62 or
    63 $ cd build_cortexa7thf_neon_vfpv4
    64 }}}
     19* [wiki:compile_all#CompileFlairlibrariestoolsanddemosalltogether Compile among everything] (recommended), maybe you have already done it!
     20* [wiki:compile_all#Recompileaparticularproject Recompile only this demo]
     21* [wiki:compile_all#Compileyourownproject Generate and compile it alone]
    6522
    6623== Execution on a PC ==