🛰️航天仿真算法库 SpaceAST
0.0.1
载入中...
搜索中...
未找到
BlockSwitch.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
BlockSwitch
:
public
FuncBlock
30
{
31
public
:
32
BlockSwitch
();
33
34
BlockSwitch
(
const
BlockSwitch
&) =
delete
;
35
BlockSwitch
& operator=(
const
BlockSwitch
&) =
delete
;
36
37
errc_t
run
(
const
SimTime
&simTime)
override
;
38
41
void
setThreshold(
double
threshold);
42
45
double
getThreshold()
const
;
46
47
protected
:
48
double
threshold_{0.0};
49
double
* input1_{
nullptr
};
// 输入1
50
double
* input2_{
nullptr
};
// 输入2
51
double
* control_{
nullptr
};
// 控制输入
52
double
* output_{&outputBuffer_};
53
double
outputBuffer_{0.0};
54
};
55
56
AST_NAMESPACE_END
ast::BlockSwitch
开关块
定义
BlockSwitch.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
SignalRouting
BlockSwitch.hpp
制作者
1.12.0