A few abs->fabs where we are passing a double in
This commit is contained in:
parent
0bea768f24
commit
e1d1bdc1da
1 changed files with 4 additions and 4 deletions
|
@ -898,7 +898,7 @@ void FGTower::CheckCircuitList(double dt) {
|
||||||
//cout << " ho = " << ho << " abs(ho = " << abs(ho) << '\n';
|
//cout << " ho = " << ho << " abs(ho = " << abs(ho) << '\n';
|
||||||
// TODO FIXME - get the wind and convert this to track, or otherwise use track somehow!!!
|
// TODO FIXME - get the wind and convert this to track, or otherwise use track somehow!!!
|
||||||
// If it's gusty might need to filter the value, although we are leaving 30 degrees each way leeway!
|
// If it's gusty might need to filter the value, although we are leaving 30 degrees each way leeway!
|
||||||
if(abs(ho) < 30) {
|
if(fabs(ho) < 30) {
|
||||||
// could be either takeoff, climbout or landing - check orthopos.y
|
// could be either takeoff, climbout or landing - check orthopos.y
|
||||||
//cout << "tortho.y = " << tortho.y() << '\n';
|
//cout << "tortho.y = " << tortho.y() << '\n';
|
||||||
if((tortho.y() < 0) || (t->leg == TURN4) || (t->leg == FINAL)) {
|
if((tortho.y() < 0) || (t->leg == TURN4) || (t->leg == FINAL)) {
|
||||||
|
@ -931,7 +931,7 @@ void FGTower::CheckCircuitList(double dt) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if(abs(ho) < 60) {
|
} else if(fabs(ho) < 60) {
|
||||||
// turn1 or turn 4
|
// turn1 or turn 4
|
||||||
// TODO - either fix or doublecheck this hack by looking at heading and pattern direction
|
// TODO - either fix or doublecheck this hack by looking at heading and pattern direction
|
||||||
if((t->leg == CLIMBOUT) || (t->leg == TURN1)) {
|
if((t->leg == CLIMBOUT) || (t->leg == TURN1)) {
|
||||||
|
@ -941,7 +941,7 @@ void FGTower::CheckCircuitList(double dt) {
|
||||||
t->leg = TURN4;
|
t->leg = TURN4;
|
||||||
//cout << "Turn4\n";
|
//cout << "Turn4\n";
|
||||||
}
|
}
|
||||||
} else if(abs(ho) < 120) {
|
} else if(fabs(ho) < 120) {
|
||||||
// crosswind or base
|
// crosswind or base
|
||||||
// TODO - either fix or doublecheck this hack by looking at heading and pattern direction
|
// TODO - either fix or doublecheck this hack by looking at heading and pattern direction
|
||||||
if((t->leg == TURN1) || (t->leg == CROSSWIND)) {
|
if((t->leg == TURN1) || (t->leg == CROSSWIND)) {
|
||||||
|
@ -951,7 +951,7 @@ void FGTower::CheckCircuitList(double dt) {
|
||||||
t->leg = BASE;
|
t->leg = BASE;
|
||||||
//cout << "Base\n";
|
//cout << "Base\n";
|
||||||
}
|
}
|
||||||
} else if(abs(ho) < 150) {
|
} else if(fabs(ho) < 150) {
|
||||||
// turn2 or turn 3
|
// turn2 or turn 3
|
||||||
// TODO - either fix or doublecheck this hack by looking at heading and pattern direction
|
// TODO - either fix or doublecheck this hack by looking at heading and pattern direction
|
||||||
if((t->leg == CROSSWIND) || (t->leg == TURN2)) {
|
if((t->leg == CROSSWIND) || (t->leg == TURN2)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue