Kludge the HI error so that it initially matches the magnetic variation.
This commit is contained in:
parent
6077e8a824
commit
34e4ff4922
1 changed files with 7 additions and 0 deletions
|
@ -1774,6 +1774,13 @@ static bool fgMainInit( int argc, char **argv ) {
|
||||||
SGMagVar *magvar = new SGMagVar();
|
SGMagVar *magvar = new SGMagVar();
|
||||||
globals->set_mag( magvar );
|
globals->set_mag( magvar );
|
||||||
|
|
||||||
|
|
||||||
|
// kludge to initialize mag compass
|
||||||
|
// (should only be done for in-flight
|
||||||
|
// startup)
|
||||||
|
fgSetDouble("/instrumentation/heading-indicator/offset-deg",
|
||||||
|
globals->get_mag()->get_magvar() * SGD_RADIANS_TO_DEGREES);
|
||||||
|
|
||||||
// airport = new ssgBranch;
|
// airport = new ssgBranch;
|
||||||
// airport->setName( "Airport Lighting" );
|
// airport->setName( "Airport Lighting" );
|
||||||
// lighting->addKid( airport );
|
// lighting->addKid( airport );
|
||||||
|
|
Loading…
Reference in a new issue