From 72131a4a4971df690ec5004977ee8eca1d0aa114 Mon Sep 17 00:00:00 2001 From: James Turner Date: Thu, 8 Nov 2012 09:05:11 +0000 Subject: [PATCH] Alexis Bory: The purpose of this little cosmetic patch is to ease the use of proptest's output in a ploter. --- src/FDM/YASim/proptest.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/FDM/YASim/proptest.cpp b/src/FDM/YASim/proptest.cpp index 9bdadef9c..cc4ffc421 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; isetThrottle(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