From: ThorstenB Date: Wed, 29 Dec 2010 20:17:46 +0000 (+0100) Subject: Fixed AIplane vertical speed. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6eadcb8dfcd6f925dac73cb5a023e5bb73921b47;p=flightgear.git Fixed AIplane vertical speed. Fixed reversed fps-fpm conversion. --- diff --git a/src/AIModel/AIBase.cxx b/src/AIModel/AIBase.cxx index c206691a8..1e3b775d4 100644 --- a/src/AIModel/AIBase.cxx +++ b/src/AIModel/AIBase.cxx @@ -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 {