🛰️航天仿真算法库 SpaceAST
0.0.1
载入中...
搜索中...
未找到
BlockSaturation.hpp
浏览该文件的文档.
1
20
21
#pragma once
22
23
#include "AstGlobal.h"
24
#include "AstCore/FuncBlock.hpp"
25
26
AST_NAMESPACE_BEGIN
27
29
class
AST_CORE_API
BlockSaturation
:
public
FuncBlock
30
{
31
public
:
32
explicit
BlockSaturation
(
double
lowerLimit = -1.0,
double
upperLimit = 1.0);
33
34
BlockSaturation
(
const
BlockSaturation
&) =
delete
;
35
BlockSaturation
& operator=(
const
BlockSaturation
&) =
delete
;
36
37
errc_t
run
(
const
SimTime
&simTime)
override
;
38
41
void
setLowerLimit(
double
lowerLimit);
42
45
double
getLowerLimit()
const
;
46
49
void
setUpperLimit(
double
upperLimit);
50
53
double
getUpperLimit()
const
;
54
58
void
setLimits(
double
lowerLimit,
double
upperLimit);
59
60
protected
:
61
double
lowerLimit_{-1.0};
62
double
upperLimit_{1.0};
63
double
* input_{
nullptr
};
64
double
* output_{&outputBuffer_};
65
double
outputBuffer_{0.0};
66
};
67
68
AST_NAMESPACE_END
ast::BlockSaturation
饱和块
定义
BlockSaturation.hpp:30
ast::FuncBlock
函数块/功能块
定义
FuncBlock.hpp:41
ast::FuncBlock::run
virtual errc_t run(const SimTime &simTime)=0
计算函数块
ast::SimTime
仿真时间
定义
SimTime.hpp:30
src
AstCore
Propagator
HPOP
BlockCommon
Discontinuities
BlockSaturation.hpp
制作者
1.12.0