**NOTE**: For Flair version <= 0.2.2, see [wiki:sinus_old this page].
**NOTE**: For Flair version <= 0.2.2, see [this page](old/sinus).
This page explains how to compile and test a simple program using Flair. Moreover, this program is commented to help understand how to code with Flair. You can also read Flair's documentation [wiki:documentation page].
This page explains how to compile and test a simple program using Flair. Moreover, this program is commented to help understand how to code with Flair. You can also read Flair's documentation [page](documentation).
The 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.
The 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.
Sources are in [source:flair-src/trunk/demos/Sinus flair-src/demos/Sinus].
Sources are in [flair-src/demos/Sinus](https://gitlab.utc.fr/uav-hds/flair/flair-src/-/tree/main/demos/Sinus).
__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.
**NB**: Filter and SensorActuator libraries sources are also a good starting point to see how to program with Flair. Yet, they use the [pimpl idiom](http://c2.com/cgi/wiki?PimplIdiom), which can be harder to read than this example.
== Compilation ==
# Compilation
There is various ways to compile/recompile it:
* [wiki:compile_all#CompileFlairlibrariestoolsanddemosalltogether Compile among everything] (recommended), maybe you have already done it!
* [wiki:compile_all#Recompileaparticularproject Recompile only this demo]
* [wiki:compile_all#Compileyourownproject Generate and compile it alone]
*[Compile among everything](build-system/#compile-flair-libraries-tools-and-demos-all-together)(recommended), maybe you have already done it!
*[Recompile only this demo](build-system/#recompile-a-particular-project)
*[Generate and compile it alone](build-system/#compile-your-own-project)