From 34e4ff4922b2dc31074eee77bc95f694528c046f Mon Sep 17 00:00:00 2001 From: david Date: Thu, 17 Jul 2003 00:06:03 +0000 Subject: [PATCH] Kludge the HI error so that it initially matches the magnetic variation. --- src/Main/main.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Main/main.cxx b/src/Main/main.cxx index 594696e76..2a8063655 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -1774,6 +1774,13 @@ static bool fgMainInit( int argc, char **argv ) { SGMagVar *magvar = new SGMagVar(); 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->setName( "Airport Lighting" ); // lighting->addKid( airport ); -- 2.39.5