+/* Run multiloop iterations of the flight model */
+int fgFlightModelUpdate(int model, struct flight_params *f, int multiloop) {
+ int result;
+
+ if ( model == FG_LARCSIM ) {
+ fgFlight_2_LaRCsim(f); /* translate FG to LaRCsim structure */
+ fgLaRCsimUpdate(multiloop);
+ fgLaRCsim_2_Flight(f); /* translate LaRCsim back to FG structure */
+ } else {
+ printf("Unimplemented flight model == %d\n", model);
+ }
+
+ return(result);
+}