]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/viewer.cxx
Sync with latest JSBSim CVS
[flightgear.git] / src / Main / viewer.cxx
index 4b70193e1f354062aa1bb0f587928c349ab89e02..b723733ffd771c25d8ab8ae2b3c52a426a694cc3 100644 (file)
 #endif
 
 #include <simgear/debug/logstream.hxx>
+#include <simgear/constants.h>
 
 #include "viewer.hxx"
 
 
 // Constructor
-FGViewer::FGViewer( void )
+FGViewer::FGViewer( void ):
+    fov(55.0),
+    view_offset(0.0),
+    goal_view_offset(0.0)
 {
+    sgSetVec3( pilot_offset, 0.0, 0.0, 0.0 );
+    sgdZeroVec3(geod_view_pos);
+    sgdZeroVec3(abs_view_pos);
+    sea_level_radius = SG_EQUATORIAL_RADIUS_M; 
+    //a reasonable guess for init, so that the math doesn't blow up
 }
 
 
 // Update the view parameters
 void FGViewer::update() {
-    FG_LOG( FG_VIEW, FG_ALERT, "Shouldn't ever see this" );
-    exit(-1);
+    SG_LOG( SG_VIEW, SG_ALERT, "Shouldn't ever see this" );
 }