41#include "models/FGFCS.h"
42#include "input_output/FGXMLElement.h"
43#include "input_output/FGLog.h"
60 bind(element, fcs->GetPropertyManager().get());
77 for (
auto node: InputNodes)
78 Output += node->getDoubleValue();
107void FGSummer::Debug(
int from)
109 if (debug_lvl <= 0)
return;
114 log <<
" INPUTS: " << fixed <<
"\n";
115 for (
auto node: InputNodes)
116 log <<
" " << node->GetNameWithSign() <<
"\n";
117 if (Bias != 0.0) log <<
" Bias: " << Bias <<
"\n";
118 for (
auto node: OutputNodes)
119 log <<
" OUTPUT: " << node->getNameString() <<
"\n";
122 if (debug_lvl & 2 ) {
123 FGLogging log(LogLevel::DEBUG);
124 if (from == 0) log <<
"Instantiated: FGSummer\n";
125 if (from == 1) log <<
"Destroyed: FGSummer\n";
127 if (debug_lvl & 4 ) {
129 if (debug_lvl & 8 ) {
131 if (debug_lvl & 16) {
133 if (debug_lvl & 64) {
Element * FindElement(const std::string &el="")
Searches for a specified element.
double FindElementValueAsNumber(const std::string &el="")
Searches for the named element and returns the data belonging to it as a number.
Base class for JSBSim Flight Control System Components.
Encapsulates the Flight Control System (FCS) functionality.
FGSummer(FGFCS *fcs, Element *element)
Constructor.
bool Run(void) override
The execution method for this FCS component.
Main namespace for the JSBSim Flight Dynamics Model.