]> git.mxchange.org Git - flightgear.git/commitdiff
Allow setting of NED velocities.
authorcurt <curt>
Sat, 29 Aug 2009 18:42:58 +0000 (18:42 +0000)
committerTim Moore <timoore@redhat.com>
Wed, 2 Sep 2009 22:02:48 +0000 (00:02 +0200)
src/FDM/ExternalPipe/ExternalPipe.cxx

index 8f33df584c36c0b719a94b7b8bd333aa9c519a00..2be480971a4bc00768aff3a98f0b5f3aac287ad8 100644 (file)
@@ -448,6 +448,11 @@ static void process_set_command( const string_list &tokens ) {
         double thetadot = atof( tokens[3].c_str() );
         double psidot   = atof( tokens[4].c_str() );
         cur_fdm_state->_set_Euler_Rates( phidot, thetadot, psidot );
+    } else if ( tokens[1] == "ned" ) {
+       double north_fps = atof( tokens[2].c_str() );
+       double east_fps = atof( tokens[3].c_str() );
+       double down_fps = atof( tokens[4].c_str() );
+       cur_fdm_state->_set_Velocities_Local( north_fps, east_fps, down_fps );
     } else if ( tokens[1] == "alpha" ) {
         cur_fdm_state->_set_Alpha( atof(tokens[2].c_str()) );
     } else if ( tokens[1] == "beta" ) {