From: Dave C. <dav...@co...> - 2015-12-03 00:08:54
|
Magnetic variation is currently calculated in the FGMagnetometer component, and then promptly forgotten. Would there be any objection to moving the magnetic variation calculation to FGInertial instead? After all, it is a property of the planet (which reminds me that Jon once mentioned creating an FGPlanet class at some point.) BTW, the following code, which according to the documentation in FGMagnetometer.h should work, results in a core dump when running within FlightGear: <channel> <magnetometer name="magX"> <axis> X </axis> </magnetometer> </channel> It turns out the current code requires a location element, which if not provided results in termination with extreme prejudice :) I removed the exit(-1) bit so that the default location of (0,0,0) would suffice. The magnetometer then runs but provides no output. I don't have a magnetometer, nor do I have specifications for one, so I don't know what output to expect anyway. Dave -- Dave Culp <dav...@co...> |