Roy Vegard Ovesen:
I've added two new debug log types for the instrumentation and systems. They used to use the autopilot debug log, because I couldn't figure out how to make new log types. Well, now I have figured it out. ;-)
This commit is contained in:
parent
5192c5bc7d
commit
0ab2a40c2a
17 changed files with 35 additions and 30 deletions
|
@ -107,6 +107,9 @@ FGEngine::FGEngine(FGFDMExec* exec, int engine_number) : EngineNumber(engine_num
|
||||||
|
|
||||||
FGEngine::~FGEngine()
|
FGEngine::~FGEngine()
|
||||||
{
|
{
|
||||||
|
if (Thruster)
|
||||||
|
delete Thruster;
|
||||||
|
|
||||||
Debug(1);
|
Debug(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -75,9 +75,9 @@ ADF::ADF (SGPropertyNode *node )
|
||||||
} else if ( cname == "number" ) {
|
} else if ( cname == "number" ) {
|
||||||
num = child->getIntValue();
|
num = child->getIntValue();
|
||||||
} else {
|
} 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() ) {
|
if ( name.length() ) {
|
||||||
SG_LOG( SG_AUTOPILOT, SG_WARN, "Section = " << name );
|
SG_LOG( SG_INSTR, SG_WARN, "Section = " << name );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,9 +36,9 @@ AirspeedIndicator::AirspeedIndicator ( SGPropertyNode *node )
|
||||||
} else if ( cname == "static-port" ) {
|
} else if ( cname == "static-port" ) {
|
||||||
static_port = cval;
|
static_port = cval;
|
||||||
} else {
|
} 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() ) {
|
if ( name.length() ) {
|
||||||
SG_LOG( SG_AUTOPILOT, SG_WARN, "Section = " << name );
|
SG_LOG( SG_INSTR, SG_WARN, "Section = " << name );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,9 +66,9 @@ Altimeter::Altimeter ( SGPropertyNode *node )
|
||||||
} else if ( cname == "static-port" ) {
|
} else if ( cname == "static-port" ) {
|
||||||
static_port = cval;
|
static_port = cval;
|
||||||
} else {
|
} 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() ) {
|
if ( name.length() ) {
|
||||||
SG_LOG( SG_AUTOPILOT, SG_WARN, "Section = " << name );
|
SG_LOG( SG_INSTR, SG_WARN, "Section = " << name );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,9 +31,9 @@ AttitudeIndicator::AttitudeIndicator ( SGPropertyNode *node )
|
||||||
} else if ( cname == "vacuum-system" ) {
|
} else if ( cname == "vacuum-system" ) {
|
||||||
vacuum_system = cval;
|
vacuum_system = cval;
|
||||||
} else {
|
} 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() ) {
|
if ( name.length() ) {
|
||||||
SG_LOG( SG_AUTOPILOT, SG_WARN, "Section = " << name );
|
SG_LOG( SG_INSTR, SG_WARN, "Section = " << name );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,9 +33,9 @@ Clock::Clock ( SGPropertyNode *node )
|
||||||
} else if ( cname == "number" ) {
|
} else if ( cname == "number" ) {
|
||||||
num = child->getIntValue();
|
num = child->getIntValue();
|
||||||
} else {
|
} 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() ) {
|
if ( name.length() ) {
|
||||||
SG_LOG( SG_AUTOPILOT, SG_WARN, "Section = " << name );
|
SG_LOG( SG_INSTR, SG_WARN, "Section = " << name );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,9 +57,9 @@ DME::DME ( SGPropertyNode *node )
|
||||||
} else if ( cname == "number" ) {
|
} else if ( cname == "number" ) {
|
||||||
num = child->getIntValue();
|
num = child->getIntValue();
|
||||||
} else {
|
} 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() ) {
|
if ( name.length() ) {
|
||||||
SG_LOG( SG_AUTOPILOT, SG_WARN, "Section = " << name );
|
SG_LOG( SG_INSTR, SG_WARN, "Section = " << name );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,9 +44,9 @@ GPS::GPS ( SGPropertyNode *node)
|
||||||
} else if ( cname == "number" ) {
|
} else if ( cname == "number" ) {
|
||||||
num = child->getIntValue();
|
num = child->getIntValue();
|
||||||
} else {
|
} 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() ) {
|
if ( name.length() ) {
|
||||||
SG_LOG( SG_AUTOPILOT, SG_WARN, "Section = " << name );
|
SG_LOG( SG_INSTR, SG_WARN, "Section = " << name );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,9 +26,9 @@ HeadingIndicator::HeadingIndicator ( SGPropertyNode *node )
|
||||||
} else if ( cname == "vacuum-system" ) {
|
} else if ( cname == "vacuum-system" ) {
|
||||||
vacuum_system = cval;
|
vacuum_system = cval;
|
||||||
} else {
|
} 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() ) {
|
if ( name.length() ) {
|
||||||
SG_LOG( SG_AUTOPILOT, SG_WARN, "Section = " << name );
|
SG_LOG( SG_INSTR, SG_WARN, "Section = " << name );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,9 +33,9 @@ MagCompass::MagCompass ( SGPropertyNode *node )
|
||||||
} else if ( cname == "number" ) {
|
} else if ( cname == "number" ) {
|
||||||
num = child->getIntValue();
|
num = child->getIntValue();
|
||||||
} else {
|
} 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() ) {
|
if ( name.length() ) {
|
||||||
SG_LOG( SG_AUTOPILOT, SG_WARN, "Section = " << name );
|
SG_LOG( SG_INSTR, SG_WARN, "Section = " << name );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,9 +23,9 @@ SlipSkidBall::SlipSkidBall ( SGPropertyNode *node)
|
||||||
} else if ( cname == "number" ) {
|
} else if ( cname == "number" ) {
|
||||||
num = child->getIntValue();
|
num = child->getIntValue();
|
||||||
} else {
|
} 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() ) {
|
if ( name.length() ) {
|
||||||
SG_LOG( SG_AUTOPILOT, SG_WARN, "Section = " << name );
|
SG_LOG( SG_INSTR, SG_WARN, "Section = " << name );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,9 +28,9 @@ TurnIndicator::TurnIndicator ( SGPropertyNode *node) :
|
||||||
} else if ( cname == "number" ) {
|
} else if ( cname == "number" ) {
|
||||||
num = child->getIntValue();
|
num = child->getIntValue();
|
||||||
} else {
|
} 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() ) {
|
if ( name.length() ) {
|
||||||
SG_LOG( SG_AUTOPILOT, SG_WARN, "Section = " << name );
|
SG_LOG( SG_INSTR, SG_WARN, "Section = " << name );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,9 +28,9 @@ VerticalSpeedIndicator::VerticalSpeedIndicator ( SGPropertyNode *node )
|
||||||
} else if ( cname == "static-port" ) {
|
} else if ( cname == "static-port" ) {
|
||||||
static_port = cval;
|
static_port = cval;
|
||||||
} else {
|
} 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() ) {
|
if ( name.length() ) {
|
||||||
SG_LOG( SG_AUTOPILOT, SG_WARN, "Section = " << name );
|
SG_LOG( SG_INSTR, SG_WARN, "Section = " << name );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,6 +82,8 @@ LogClassMapping log_class_mappings [] = {
|
||||||
LogClassMapping(SG_IO, "io"),
|
LogClassMapping(SG_IO, "io"),
|
||||||
LogClassMapping(SG_CLIPPER, "clipper"),
|
LogClassMapping(SG_CLIPPER, "clipper"),
|
||||||
LogClassMapping(SG_NETWORK, "network"),
|
LogClassMapping(SG_NETWORK, "network"),
|
||||||
|
LogClassMapping(SG_INSTR, "instrumentation"),
|
||||||
|
LogClassMapping(SG_SYSTEMS, "systems"),
|
||||||
LogClassMapping(SG_UNDEFD, "")
|
LogClassMapping(SG_UNDEFD, "")
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -24,9 +24,9 @@ PitotSystem::PitotSystem ( SGPropertyNode *node )
|
||||||
} else if ( cname == "number" ) {
|
} else if ( cname == "number" ) {
|
||||||
num = child->getIntValue();
|
num = child->getIntValue();
|
||||||
} else {
|
} 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() ) {
|
if ( name.length() ) {
|
||||||
SG_LOG( SG_AUTOPILOT, SG_WARN, "Section = " << name );
|
SG_LOG( SG_SYSTEMS, SG_WARN, "Section = " << name );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,9 +23,9 @@ StaticSystem::StaticSystem ( SGPropertyNode *node )
|
||||||
} else if ( cname == "number" ) {
|
} else if ( cname == "number" ) {
|
||||||
num = child->getIntValue();
|
num = child->getIntValue();
|
||||||
} else {
|
} 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() ) {
|
if ( name.length() ) {
|
||||||
SG_LOG( SG_AUTOPILOT, SG_WARN, "Section = " << name );
|
SG_LOG( SG_SYSTEMS, SG_WARN, "Section = " << name );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,9 +29,9 @@ VacuumSystem::VacuumSystem ( SGPropertyNode *node )
|
||||||
} else if ( cname == "scale" ) {
|
} else if ( cname == "scale" ) {
|
||||||
scale = child->getDoubleValue();
|
scale = child->getDoubleValue();
|
||||||
} else {
|
} 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() ) {
|
if ( name.length() ) {
|
||||||
SG_LOG( SG_AUTOPILOT, SG_WARN, "Section = " << name );
|
SG_LOG( SG_SYSTEMS, SG_WARN, "Section = " << name );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue