Skip to content

Commit 13f32de

Browse files
author
camilo
committed
update doc publish
1 parent 9505daf commit 13f32de

File tree

3 files changed

+5
-21
lines changed

3 files changed

+5
-21
lines changed

.github/workflows/doxygen_gen.yml renamed to .github/workflows/docpublish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: documentation
1+
name: publish
22

33
on:
44
push:
@@ -7,7 +7,7 @@ on:
77
branches: [ main ]
88

99
jobs:
10-
build:
10+
deploy:
1111
runs-on: ubuntu-20.04
1212
steps:
1313
- name: Checkout repository and submodules

src/ltisys.cpp

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include <include/ltisys.hpp>
2+
#include <include/ffmath.hpp>
23

34
using namespace qlibs;
45

@@ -22,15 +23,7 @@ void ltisys::normalizeTransferFunction( real_t *num,
2223
/*============================================================================*/
2324
real_t ltisys::saturate( real_t y )
2425
{
25-
if ( y < min ) {
26-
y = min;
27-
}
28-
else if ( y > max ) {
29-
y = max;
30-
}
31-
else {
32-
/*do nothing*/
33-
}
26+
(void)ffmath::inRangeCoerce( y, min, max );
3427
return y;
3528
}
3629
/*============================================================================*/

src/pid.cpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -508,16 +508,7 @@ real_t pidController::saturate( real_t x,
508508
const real_t vMin,
509509
const real_t vMax ) noexcept
510510
{
511-
if ( x > vMax ) {
512-
x = vMax;
513-
}
514-
else if ( x < vMin ) {
515-
x = vMin;
516-
}
517-
else {
518-
/*nothing to do*/
519-
}
520-
511+
(void)ffmath::inRangeCoerce( x, vMin, vMax );
521512
return x;
522513
}
523514
/*============================================================================*/

0 commit comments

Comments
 (0)