[修改]修改了错误的exporter名称
This commit is contained in:
23
opcua-exporter/fault-simulation-algorithm/step/step.cpp
Normal file
23
opcua-exporter/fault-simulation-algorithm/step/step.cpp
Normal file
@@ -0,0 +1,23 @@
|
||||
//
|
||||
// Created by baiguwen on 2022/4/20.
|
||||
//
|
||||
#include "step.h"
|
||||
#include <iostream>
|
||||
|
||||
void step::set_config(const nlohmann::json &config) {
|
||||
try {
|
||||
amplitude_base_ = jsonValue(config, "STEP_AMPLITUDE_BASE");
|
||||
config_ = config;
|
||||
} catch (...) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
nlohmann::json step::config() {
|
||||
return config_;
|
||||
}
|
||||
|
||||
|
||||
double step::eval(double value) {
|
||||
return value + amplitude_base_;
|
||||
}
|
||||
Reference in New Issue
Block a user