Nav-display: expose TCAS threat level correctly.
This commit is contained in:
parent
f0c729f2d5
commit
36fc0367d2
1 changed files with 4 additions and 1 deletions
|
@ -1161,7 +1161,10 @@ void NavDisplay::computeAIStates(const SGPropertyNode* ai, string_set& states)
|
||||||
int threatLevel = ai->getIntValue("tcas/threat-level",-1);
|
int threatLevel = ai->getIntValue("tcas/threat-level",-1);
|
||||||
if (threatLevel >= 0) {
|
if (threatLevel >= 0) {
|
||||||
states.insert("tcas");
|
states.insert("tcas");
|
||||||
// states.insert("tcas-threat-level-" + itoa(threatLevel));
|
|
||||||
|
std::ostringstream os;
|
||||||
|
os << "tcas-threat-level-" << threatLevel;
|
||||||
|
states.insert(os.str());
|
||||||
}
|
}
|
||||||
|
|
||||||
double vspeed = ai->getDoubleValue("velocities/vertical-speed-fps");
|
double vspeed = ai->getDoubleValue("velocities/vertical-speed-fps");
|
||||||
|
|
Loading…
Add table
Reference in a new issue