Skip to content

Commit e3c3d30

Browse files
author
camilo
committed
fixed compliance on some devices
1 parent f4d9fe8 commit e3c3d30

File tree

7 files changed

+17
-17
lines changed

7 files changed

+17
-17
lines changed

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"maintainer": true
1717
}
1818
],
19-
"version": "1.0.1",
19+
"version": "1.0.2",
2020
"license": "MIT",
2121
"frameworks": "arduino",
2222
"platforms": "*"

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=qlibs
2-
version=1.0.1
2+
version=1.0.2
33
license=MIT
44
author=J. Camilo Gomez C. <[email protected]>
55
maintainer=J. Camilo Gomez C. <[email protected]>

src/include/ltisys.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ namespace qlibs {
397397
* an array of type continuousStates with n elements.
398398
* The supplied array will be updated on every invocation of
399399
* continuousSystem::excite().
400-
* @param[in] N The system order ( n ).
400+
* @param[in] nD The system order ( n ).
401401
*
402402
* example 2: \f$ \frac{ b_{0}s^{2}+b_{1}s+b_{2} }{ a_{0}s^{2} + a_{1}s + a_{2} }, na = 3 \f$
403403
* @note Size of @a num and @a den should be equal.
@@ -409,10 +409,10 @@ namespace qlibs {
409409
continuousSystem( real_t *num,
410410
real_t *den,
411411
state *x,
412-
const size_t N,
412+
const size_t nD,
413413
const real_t dT ) noexcept
414414
{
415-
(void)setup( num, den, x, N, dT );
415+
(void)setup( num, den, x, nD, dT );
416416
}
417417

418418
/**
@@ -470,7 +470,7 @@ namespace qlibs {
470470
* an array of type continuousStates with n elements.
471471
* The supplied array will be updated on every invocation of
472472
* continuousSystem::excite().
473-
* @param[in] N The system order ( n ).
473+
* @param[in] nD The system order ( n ).
474474
*
475475
* example 2: \f$ \frac{ b_{0}s^{2}+b_{1}s+b_{2} }{ a_{0}s^{2} + a_{1}s + a_{2} }, na = 3 \f$
476476
* @note Size of @a num and @a den should be equal.
@@ -483,7 +483,7 @@ namespace qlibs {
483483
bool setup( real_t *num,
484484
real_t *den,
485485
state *x,
486-
const size_t N,
486+
const size_t nD,
487487
const real_t dT ) noexcept;
488488

489489
/**

src/include/smoother.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,13 +443,13 @@ namespace qlibs {
443443
* @brief Setup an initialize the Double exponential smoothing instance
444444
* @param[in] a Weight for the level [ 0 < @a a < 1 ]
445445
* @param[in] b Weight for the trend [ 0 < @a b < 1 ]
446-
* @param[in] N Number of steps for the forecast
446+
* @param[in] nS Number of steps for the forecast
447447
* @return @c true on success, otherwise return @c false.
448448
*/
449449
virtual ~smootherDESF() {}
450450
bool setup( const real_t a,
451451
const real_t b,
452-
const size_t N );
452+
const size_t nS );
453453

454454
/**
455455
* @brief Perform the smooth operation recursively for the input signal @a x.

src/ltisys.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,16 +159,16 @@ real_t discreteSystem::excite( real_t u )
159159
bool continuousSystem::setup( real_t *num,
160160
real_t *den,
161161
state *x,
162-
const size_t N,
162+
const size_t nD,
163163
const real_t dT ) noexcept
164164
{
165165
bool retValue = false;
166166

167167
if ( ( nullptr != num ) && ( nullptr != den ) && ( nullptr != x ) ) {
168168
b = &num[ 1 ];
169-
n = N;
169+
n = nD;
170170
nb = n;
171-
na = N + 1;
171+
na = nD + 1;
172172
xc = x;
173173
dt = dT;
174174
a = &den[ 1 ];

src/qlibs.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
* @file qlibs.h
33
* @author J. Camilo Gomez C.
4-
* @version 1.0.1
4+
* @version 1.0.2
55
* @note This file is part of the qlibs++ distribution.
66
* @brief Global inclusion header
77
**/
@@ -41,8 +41,8 @@ This file is part of the QuarkTS++ OS distribution.
4141
#ifndef QLIBS_CPP_H
4242
#define QLIBS_CPP_H
4343

44-
#define QLIBS_CPP_VERSION "1.0.0"
45-
#define QLIBS_CPP_VERNUM ( 100u )
44+
#define QLIBS_CPP_VERSION "1.0.2"
45+
#define QLIBS_CPP_VERNUM ( 102u )
4646
#define QLIBS_CPP_CAPTION "qLibs++" QLIBS_CPP_VERSION
4747

4848
#include "include/qlibs_types.hpp"

src/smoother.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,14 +325,14 @@ real_t smootherKLMN::smooth( const real_t x )
325325
/*============================================================================*/
326326
bool smootherDESF::setup( const real_t a,
327327
const real_t b,
328-
const size_t N )
328+
const size_t nS )
329329
{
330330
bool retValue = false;
331331

332332
if ( ( a > 0.0 ) && ( a < 1.0 ) && ( b > 0.0 ) && ( b < 1.0 ) ) {
333333
alpha = a;
334334
beta = b;
335-
n = static_cast<real_t>( N );
335+
n = static_cast<real_t>( nS );
336336
retValue = reset();
337337
}
338338

0 commit comments

Comments
 (0)