From f07a83c73a4cb10c205586f8377fca78265bddff Mon Sep 17 00:00:00 2001 From: curt Date: Sat, 29 Aug 2009 18:42:58 +0000 Subject: [PATCH] Allow setting of NED velocities. --- src/FDM/ExternalPipe/ExternalPipe.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/FDM/ExternalPipe/ExternalPipe.cxx b/src/FDM/ExternalPipe/ExternalPipe.cxx index 8f33df584..2be480971 100644 --- a/src/FDM/ExternalPipe/ExternalPipe.cxx +++ b/src/FDM/ExternalPipe/ExternalPipe.cxx @@ -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" ) { -- 2.39.5