]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AIBallistic.cxx
David Culp:
[flightgear.git] / src / AIModel / AIBallistic.cxx
index 5bfadf48b403cd9a11166d968b74740795c1060f..86f1e3ad180624b139a41fef96c5dffdeddfb609 100644 (file)
@@ -36,7 +36,6 @@ FGAIBallistic::FGAIBallistic(FGAIManager* mgr) {
     gravity = 32;
 //  buoyancy = 64;
     no_roll = false;
-    Mach = 0.4;
 }
 
 FGAIBallistic::~FGAIBallistic() {
@@ -45,7 +44,6 @@ FGAIBallistic::~FGAIBallistic() {
 
 bool FGAIBallistic::init() {
    FGAIBase::init();
-   aero_stabilized = true;
    hdg = azimuth;
    pitch = elevation;
    roll = rotation;
@@ -85,8 +83,8 @@ void FGAIBallistic::setRoll(double rl) {
    rotation = rl;
 }
 
-void FGAIBallistic::setStabilization(bool val) {
-   aero_stabilized = val;
+void FGAIBallistic::setStabilisation(bool val) {
+   aero_stabilised = val;
 }
 
 void FGAIBallistic::setDragArea(double a) {
@@ -182,7 +180,8 @@ void FGAIBallistic::Run(double dt) {
    pos.setelev(altitude * SG_FEET_TO_METER); 
 
    // recalculate pitch (velocity vector) if aerostabilized
-   if (aero_stabilized) pitch = atan2( vs, hs ) * SG_RADIANS_TO_DEGREES;
+   //   cout << "aero_stabilised " << aero_stabilised  << endl ;
+   if (aero_stabilised) pitch = atan2( vs, hs ) * SG_RADIANS_TO_DEGREES;
 
    // recalculate total speed
    speed = sqrt( vs * vs + hs * hs);