You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
- USA or view http://www.gnu.org/copyleft/gpl.html.
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
**********************************************************************/
#include <simgear/compiler.h>
-#if defined( __MWERKS__ )
-// -dw- optimizer chokes (big-time) trying to optimize humongous
-// loop/switch statements
-#pragma optimization_level 0
-#endif
#include <cstdlib>
#include <string>
-#include STL_IOSTREAM
+#include <iostream>
#include "uiuc_menu_controlSurface.h"
-SG_USING_STD(cerr);
-SG_USING_STD(cout);
-SG_USING_STD(endl);
+using std::cerr;
+using std::cout;
+using std::endl;
#ifndef _MSC_VER
-SG_USING_STD(exit);
+using std::exit;
#endif
void parse_controlSurface( const string& linetoken2, const string& linetoken3,
use_rudder_sas_type1 = true;
break;
}
+ case ap_pah_flag:
+ {
+ if (check_float(linetoken3))
+ token3 >> token_value;
+ else
+ uiuc_warnings_errors(1, *command_line);
+
+ ap_pah_start_time=token_value;
+ ap_pah_on = 1;
+ break;
+ }
+ case ap_alh_flag:
+ {
+ if (check_float(linetoken3))
+ token3 >> token_value;
+ else
+ uiuc_warnings_errors(1, *command_line);
+
+ ap_alh_start_time=token_value;
+ ap_alh_on = 1;
+ break;
+ }
+ case ap_rah_flag:
+ {
+ if (check_float(linetoken3))
+ token3 >> token_value;
+ else
+ uiuc_warnings_errors(1, *command_line);
+
+ ap_rah_start_time=token_value;
+ ap_rah_on = 1;
+ break;
+ }
+ case ap_hh_flag:
+ {
+ if (check_float(linetoken3))
+ token3 >> token_value;
+ else
+ uiuc_warnings_errors(1, *command_line);
+
+ ap_hh_start_time=token_value;
+ ap_hh_on = 1;
+ break;
+ }
+ case ap_Theta_ref_flag:
+ {
+ if (check_float(linetoken3))
+ token3 >> token_value;
+ else
+ uiuc_warnings_errors(1, *command_line);
+ token4 >> token_value_convert1;
+ convert_y = uiuc_convert(token_value_convert1);
+
+ ap_Theta_ref_rad = token_value * convert_y;
+ break;
+ }
+ case ap_alt_ref_flag:
+ {
+ if (check_float(linetoken3))
+ token3 >> token_value;
+ else
+ uiuc_warnings_errors(1, *command_line);
+
+ ap_alt_ref_ft = token_value;
+ break;
+ }
+ case ap_Phi_ref_flag:
+ {
+ if (check_float(linetoken3))
+ token3 >> token_value;
+ else
+ uiuc_warnings_errors(1, *command_line);
+ token4 >> token_value_convert1;
+ convert_y = uiuc_convert(token_value_convert1);
+
+ ap_Phi_ref_rad = token_value * convert_y;
+ break;
+ }
+ case ap_Psi_ref_flag:
+ {
+ if (check_float(linetoken3))
+ token3 >> token_value;
+ else
+ uiuc_warnings_errors(1, *command_line);
+ token4 >> token_value_convert1;
+ convert_y = uiuc_convert(token_value_convert1);
+
+ ap_Psi_ref_rad = token_value * convert_y;
+ break;
+ }
default:
{
if (ignore_unknown_keywords) {