FGEngine::~FGEngine()
{
+ if (Thruster)
+ delete Thruster;
+
Debug(1);
}
} 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 );
}
}
}
} else if ( cname == "static-port" ) {
static_port = cval;
} else {
- SG_LOG( SG_AUTOPILOT, SG_WARN, "Error in aispeed-indicator config logic" );
+ SG_LOG( SG_INSTR, SG_WARN, "Error in aispeed-indicator config logic" );
if ( name.length() ) {
- SG_LOG( SG_AUTOPILOT, SG_WARN, "Section = " << name );
+ SG_LOG( SG_INSTR, SG_WARN, "Section = " << name );
}
}
}
} else if ( cname == "static-port" ) {
static_port = cval;
} else {
- SG_LOG( SG_AUTOPILOT, SG_WARN, "Error in altimeter config logic" );
+ SG_LOG( SG_INSTR, SG_WARN, "Error in altimeter config logic" );
if ( name.length() ) {
- SG_LOG( SG_AUTOPILOT, SG_WARN, "Section = " << name );
+ SG_LOG( SG_INSTR, SG_WARN, "Section = " << name );
}
}
}
} else if ( cname == "vacuum-system" ) {
vacuum_system = cval;
} else {
- SG_LOG( SG_AUTOPILOT, SG_WARN, "Error in attitude-indicator config logic" );
+ SG_LOG( SG_INSTR, SG_WARN, "Error in attitude-indicator config logic" );
if ( name.length() ) {
- SG_LOG( SG_AUTOPILOT, SG_WARN, "Section = " << name );
+ SG_LOG( SG_INSTR, SG_WARN, "Section = " << name );
}
}
}
} else if ( cname == "number" ) {
num = child->getIntValue();
} else {
- SG_LOG( SG_AUTOPILOT, SG_WARN, "Error in clock config logic" );
+ SG_LOG( SG_INSTR, SG_WARN, "Error in clock config logic" );
if ( name.length() ) {
- SG_LOG( SG_AUTOPILOT, SG_WARN, "Section = " << name );
+ SG_LOG( SG_INSTR, SG_WARN, "Section = " << name );
}
}
}
} else if ( cname == "number" ) {
num = child->getIntValue();
} else {
- SG_LOG( SG_AUTOPILOT, SG_WARN, "Error in dme config logic" );
+ SG_LOG( SG_INSTR, SG_WARN, "Error in dme config logic" );
if ( name.length() ) {
- SG_LOG( SG_AUTOPILOT, SG_WARN, "Section = " << name );
+ SG_LOG( SG_INSTR, SG_WARN, "Section = " << name );
}
}
}
} else if ( cname == "number" ) {
num = child->getIntValue();
} else {
- SG_LOG( SG_AUTOPILOT, SG_WARN, "Error in gps config logic" );
+ SG_LOG( SG_INSTR, SG_WARN, "Error in gps config logic" );
if ( name.length() ) {
- SG_LOG( SG_AUTOPILOT, SG_WARN, "Section = " << name );
+ SG_LOG( SG_INSTR, SG_WARN, "Section = " << name );
}
}
}
} else if ( cname == "vacuum-system" ) {
vacuum_system = cval;
} else {
- SG_LOG( SG_AUTOPILOT, SG_WARN, "Error in heading-indicator config logic" );
+ SG_LOG( SG_INSTR, SG_WARN, "Error in heading-indicator config logic" );
if ( name.length() ) {
- SG_LOG( SG_AUTOPILOT, SG_WARN, "Section = " << name );
+ SG_LOG( SG_INSTR, SG_WARN, "Section = " << name );
}
}
}
} else if ( cname == "number" ) {
num = child->getIntValue();
} else {
- SG_LOG( SG_AUTOPILOT, SG_WARN, "Error in magnetic-compass config logic" );
+ SG_LOG( SG_INSTR, SG_WARN, "Error in magnetic-compass config logic" );
if ( name.length() ) {
- SG_LOG( SG_AUTOPILOT, SG_WARN, "Section = " << name );
+ SG_LOG( SG_INSTR, SG_WARN, "Section = " << name );
}
}
}
} else if ( cname == "number" ) {
num = child->getIntValue();
} else {
- SG_LOG( SG_AUTOPILOT, SG_WARN, "Error in slip-skid-ball config logic" );
+ SG_LOG( SG_INSTR, SG_WARN, "Error in slip-skid-ball config logic" );
if ( name.length() ) {
- SG_LOG( SG_AUTOPILOT, SG_WARN, "Section = " << name );
+ SG_LOG( SG_INSTR, SG_WARN, "Section = " << name );
}
}
}
} else if ( cname == "number" ) {
num = child->getIntValue();
} else {
- SG_LOG( SG_AUTOPILOT, SG_WARN, "Error in turn-indicator config logic" );
+ SG_LOG( SG_INSTR, SG_WARN, "Error in turn-indicator config logic" );
if ( name.length() ) {
- SG_LOG( SG_AUTOPILOT, SG_WARN, "Section = " << name );
+ SG_LOG( SG_INSTR, SG_WARN, "Section = " << name );
}
}
}
} else if ( cname == "static-port" ) {
static_port = cval;
} else {
- SG_LOG( SG_AUTOPILOT, SG_WARN, "Error in vertical-speed-indicator config logic" );
+ SG_LOG( SG_INSTR, SG_WARN, "Error in vertical-speed-indicator config logic" );
if ( name.length() ) {
- SG_LOG( SG_AUTOPILOT, SG_WARN, "Section = " << name );
+ SG_LOG( SG_INSTR, SG_WARN, "Section = " << name );
}
}
}
LogClassMapping(SG_IO, "io"),
LogClassMapping(SG_CLIPPER, "clipper"),
LogClassMapping(SG_NETWORK, "network"),
+ LogClassMapping(SG_INSTR, "instrumentation"),
+ LogClassMapping(SG_SYSTEMS, "systems"),
LogClassMapping(SG_UNDEFD, "")
};
} else if ( cname == "number" ) {
num = child->getIntValue();
} else {
- SG_LOG( SG_AUTOPILOT, SG_WARN, "Error in systems config logic" );
+ SG_LOG( SG_SYSTEMS, SG_WARN, "Error in systems config logic" );
if ( name.length() ) {
- SG_LOG( SG_AUTOPILOT, SG_WARN, "Section = " << name );
+ SG_LOG( SG_SYSTEMS, SG_WARN, "Section = " << name );
}
}
}
} else if ( cname == "number" ) {
num = child->getIntValue();
} else {
- SG_LOG( SG_AUTOPILOT, SG_WARN, "Error in systems config logic" );
+ SG_LOG( SG_SYSTEMS, SG_WARN, "Error in systems config logic" );
if ( name.length() ) {
- SG_LOG( SG_AUTOPILOT, SG_WARN, "Section = " << name );
+ SG_LOG( SG_SYSTEMS, SG_WARN, "Section = " << name );
}
}
}
} else if ( cname == "scale" ) {
scale = child->getDoubleValue();
} else {
- SG_LOG( SG_AUTOPILOT, SG_WARN, "Error in vacuum config logic" );
+ SG_LOG( SG_SYSTEMS, SG_WARN, "Error in vacuum config logic" );
if ( name.length() ) {
- SG_LOG( SG_AUTOPILOT, SG_WARN, "Section = " << name );
+ SG_LOG( SG_SYSTEMS, SG_WARN, "Section = " << name );
}
}
}