Skip to content

Commit c8800f8

Browse files
author
camilo
committed
updated examples
1 parent 3c2ab96 commit c8800f8

File tree

18 files changed

+71
-12
lines changed

18 files changed

+71
-12
lines changed

check/qlibs_cpp_test.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include <include/mat.hpp>
55

66
using namespace std;
7+
using namespace qlibs;
78

89
void test_fis( void );
910
void test_fis2( void );

doc/qbitfield.dox

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
* #include <iostream>
4747
* #include <qlibs.h>
4848
*
49+
* using namespace qlibs;
50+
*
4951
* int main( int argc, char *argv[] )
5052
* {
5153
* bitfield vPort; // create the bitfield instance

doc/qfis.dox

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,8 @@
348348
* #include "tipper_fis.h"
349349
* #include <qlibs.h>
350350
*
351+
* using namespace qlibs;
352+
*
351353
* // I/O Names
352354
* enum : fis::tag { service, food};
353355
* enum : fis::tag { tip};

doc/qltisys.dox

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
* #include <thread>
4646
* #include <qlibs.h>
4747
*
48+
* using namespace qlibs;
49+
*
4850
* void xTaskSystemSimulate( void )
4951
* {
5052
* const real_t dt = 0.05f; // Time step
@@ -74,6 +76,8 @@
7476
* #include <thread>
7577
* #include <qlibs.h>
7678
*
79+
* using namespace qlibs;
80+
*
7781
* void xTaskSystemSimulate( void )
7882
* {
7983
* const real_t dt = 0.05f; // Time step
@@ -125,6 +129,8 @@
125129
* #include <thread>
126130
* #include <qlibs.h>
127131
*
132+
* using namespace qlibs;
133+
*
128134
* void xTaskSystemSimulate( void )
129135
* {
130136
* real_t num[] = { 0.1f 0.2f, 0.3f };
@@ -151,6 +157,8 @@
151157
* #include <thread>
152158
* #include <qlibs.h>
153159
*
160+
* using namespace qlibs;
161+
*
154162
* void xTaskSystemSimulate( void )
155163
* {
156164
* discreteTF<3,3> dtf= {

doc/qpid.dox

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@
130130
* #include "bsp.h"
131131
* #include <qlibs.h>
132132
*
133+
* using namespace qlibs;
134+
*
133135
* const TickType_t dt = 50; //50mS time-step
134136
* void xTaskPIDspeedControl( void *arg );
135137
* real_t SetPoint = 300.0f; // desired motor speed 300rpm
@@ -215,6 +217,8 @@
215217
* #include "bsp.h"
216218
* #include <qlibs.h>
217219
*
220+
* using namespace qlibs;
221+
*
218222
* #define REF_MODEL_ORDER ( 1 )
219223
*
220224
* const TickType_t dt = 50; //50mS time-step
@@ -328,6 +332,7 @@
328332
* #include "bsp.h"
329333
* #include <qlibs.h>
330334
*
335+
* using namespace qlibs;
331336
*
332337
* const TickType_t dt = 50; //50mS time-step
333338
* void xTaskPIDspeedControl( void *arg );

doc/qrms.dox

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
* #include "hal_timer.h"
2626
* #include <qlibs.h>
2727
*
28-
*
28+
* using namespace qlibs;
29+
*
2930
* static rms rms_instance;
3031
* static volatile real_t rms_value = 0.0f;
3132
* static real_t window[ 8 ] = { 0.0f };
@@ -57,7 +58,7 @@
5758
*
5859
* #ifndef RMS_COMPUTE_H
5960
* #define RMS_COMPUTE_H
60-
*
61+
*
6162
* #ifdef __cplusplus
6263
* extern "C" {
6364
* #endif

doc/qssmoother.dox

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,8 @@
399399
* #include "AppSignalProcessing.h"
400400
* #include <qlibs.h>
401401
*
402+
* using namespace qlibs;
403+
*
402404
* constexpr size_t SMOOTHER_WINDOW_SIZE = 10;
403405
* constexpr uint32_t SMOOTHER_SAMPLE_TIME = 100;
404406
* constexpr real_t GAUSS_SIGMA = 0.5f;

examples/continuous_system/continuous_system.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#include <qlibs.h>
22

3+
using namespace qlibs;
4+
35
continuousTF<3> ctf= {
46
{ 0.0f, 2.0f, 3.0f, 6.0f },
57
{ 1.0f, 6.0f, 11.0f, 16.0f },

examples/discrete_system/discrete_system.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#include <qlibs.h>
22

3+
using namespace qlibs;
4+
35
discreteTF<3,3> dtf= {
46
{ 0.1f, 0.2f, 0.3f },
57
{ 1.0f, -0.85f, 0.02f },

examples/gaussian_smoother/gaussian_smoother.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#include <qlibs.h>
22

3+
using namespace qlibs;
4+
35
smootherGMWF filter;
46
constexpr real_t SMOOTHER_SAMPLE_TIME = 20; /*mS*/
57
int inputPin = A0; // select the input pin for the potentiometer that will drive the system

0 commit comments

Comments
 (0)