} else if ( cname == "number" ) {
num = child->getIntValue();
} else {
- SG_LOG( SG_AUTOPILOT, SG_WARN, "Error in adf config logic" );
+ SG_LOG( SG_INSTR, SG_WARN, "Error in adf config logic" );
if ( name.length() ) {
- SG_LOG( SG_AUTOPILOT, SG_WARN, "Section = " << name );
+ SG_LOG( SG_INSTR, SG_WARN, "Section = " << name );
}
}
}
std::ostringstream temp;
temp << name << num;
adf_ident = temp.str();
-
- _serviceable_node->setBoolValue(true);
}
void
{
double old_bearing_deg = _bearing_node->getDoubleValue();
- bearing_deg += _error_node->getDoubleValue();
-
while ((bearing_deg - old_bearing_deg) >= 180)
old_bearing_deg += 360;
while ((bearing_deg - old_bearing_deg) <= -180)
old_bearing_deg -= 360;
-
+ bearing_deg += _error_node->getDoubleValue();
bearing_deg =
fgGetLowPass(old_bearing_deg, bearing_deg, dt * RESPONSIVENESS);