Partially revert commit b7ec098859
The heading calculation was right. I was unaware of stg using counter-clockwise notation :(
This commit is contained in:
parent
b7ec098859
commit
5a80fe638b
1 changed files with 1 additions and 2 deletions
|
@ -25,8 +25,7 @@ Sign::Sign( char* definition )
|
||||||
|
|
||||||
// 850 format sign heading is the heading which points away from the visible numbers
|
// 850 format sign heading is the heading which points away from the visible numbers
|
||||||
// Flightgear wants the heading to be the heading in which the sign is read
|
// Flightgear wants the heading to be the heading in which the sign is read
|
||||||
heading = def_heading - 180.0;
|
heading = -def_heading + 360.0;
|
||||||
if ( heading < 0 ) { heading += 360.0; }
|
|
||||||
|
|
||||||
SG_LOG(SG_GENERAL, SG_DEBUG, "Read Sign: (" << lon << "," << lat << ") heading " << def_heading << " size " << size << " definition: " << sgdef << " calc view heading: " << heading );
|
SG_LOG(SG_GENERAL, SG_DEBUG, "Read Sign: (" << lon << "," << lat << ") heading " << def_heading << " size " << size << " definition: " << sgdef << " calc view heading: " << heading );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue