]> git.mxchange.org Git - flightgear.git/commitdiff
Fixed AIplane vertical speed.
authorThorstenB <brehmt@gmail.com>
Wed, 29 Dec 2010 20:17:46 +0000 (21:17 +0100)
committerThorstenB <brehmt@gmail.com>
Wed, 29 Dec 2010 20:17:46 +0000 (21:17 +0100)
Fixed reversed fps-fpm conversion.

src/AIModel/AIBase.cxx

index c206691a89436bc1503a88b33432ba1250a154c7..1e3b775d4f54ee17b94d5918df8c541c1b834d87 100644 (file)
@@ -611,7 +611,7 @@ double FGAIBase::_getRdot() const {
 }
 
 double FGAIBase::_getVS_fps() const {
-    return vs*60.0;
+    return vs/60.0;
 }
 
 double FGAIBase::_get_speed_east_fps() const {
@@ -623,7 +623,7 @@ double FGAIBase::_get_speed_north_fps() const {
 }
 
 void FGAIBase::_setVS_fps( double _vs ) {
-    vs = _vs/60.0;
+    vs = _vs*60.0;
 }
 
 double FGAIBase::_getAltitude() const {