Hi all,The purpose of this little cosmetic patch is to ease the use of proptest's output in a ploter.
Thanks to review, Alexis
diff --git a/src/FDM/YASim/proptest.cpp b/src/FDM/YASim/proptest.cpp index 9bdadef..cc4ffc4 100644 --- a/src/FDM/YASim/proptest.cpp +++ b/src/FDM/YASim/proptest.cpp @@ -80,6 +80,8 @@ int main(int argc, char** argv) printf("Alt: %f\n", alt / FT2M); printf("Spd: %f\n", speed / KTS2MPS); + printf("-----------------\n"); + printf("Throt RPM thrustlbs HP eff %% torque\n"); for(int i=0; i<COUNT; i++) { float throttle = i/(COUNT-1.0); pe->setThrottle(throttle); @@ -95,13 +97,14 @@ int main(int argc, char** argv) float eff = thrust * speed / power; - printf("%6.3f: %6.1frpm %6.1flbs %6.1fhp %6.1f%% torque: %f\n", + printf("%5.3f %7.1f %8.1f %8.1f %7.1f %8.1f\n", throttle, rpm, thrust * N2LB, power * (1/HP2W), 100*eff, eng->getTorque()); } printf("\n"); printf("Propeller vs. RPM\n"); printf("-----------------\n"); + printf("RPM thrustlbs HP eff %% torque\n"); for(int i=0; i<COUNT; i++) { float thrust, torque, rpm = 3000 * i/(COUNT-1.0); float omega = rpm * RPM2RAD; @@ -109,7 +112,7 @@ int main(int argc, char** argv) speed, omega, &thrust, &torque); float power = torque * omega; float eff = (thrust * speed) / power; - printf("%6.1frpm %6.1flbs %6.1fhp %.1f%% torque: %f\n", + printf("%7.1f %11.1f %10.1f %7.1f %11.1f\n", rpm, thrust * N2LB, power * (1/HP2W), 100*eff, torque); } }
------------------------------------------------------------------------------ LogMeIn Central: Instant, anywhere, Remote PC access and management. Stay in control, update software, and manage PCs from one command center Diagnose problems and improve visibility into emerging IT issues Automate, monitor and manage. Do more in less time with Central http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel