[Flightgear-devel] Propeller reverse ...

2008-09-27 Thread Syd

Hi all , and Andy,
   I've added propeller reverse to YASim , with Controlmap type 
PROPREVERSE ... I've tested it with the piston and turboprop , and seems 
to be working well . Just wonder if this could be added if Andy approves .
Of course , it might need improvements , but I thought I'd include the 
patch for comments , viewing , etc.
All it does is multiply the thrust by -0.2 when the chosen property, 
(/controls/engines/engine/reverser, here), is true. Wasn't sure what 
the best factor was , most of the data sheets i've

read show blade reverse angles of about -8 degrees.
Hope it can be included ...
Cheers

Index: ControlMap.cpp
===
RCS file: /var/cvs/FlightGear-0.9/source/src/FDM/YASim/ControlMap.cpp,v
retrieving revision 1.13
diff -U 3 -r1.13 ControlMap.cpp
--- ControlMap.cpp  10 Dec 2007 19:25:24 -  1.13
+++ ControlMap.cpp  27 Sep 2008 05:47:56 -
@@ -196,6 +196,7 @@
case ADVANCE:  ((PropEngine*)obj)-setAdvance(lval);   break;
 case PROPPITCH: ((PropEngine*)obj)-setPropPitch(lval);break;
 case PROPFEATHER: ((PropEngine*)obj)-setPropFeather((int)lval); break;
+case PROPREVERSE: ((PropEngine*)obj)-setPropReverse((bool)lval); 
break;
case REHEAT:   ((Jet*)obj)-setReheat(lval);   break;
case VECTOR:   ((Jet*)obj)-setRotation(lval); break;
case BRAKE:((Gear*)obj)-setBrake(lval);   break;
Index: ControlMap.hpp
===
RCS file: /var/cvs/FlightGear-0.9/source/src/FDM/YASim/ControlMap.hpp,v
retrieving revision 1.12
diff -U 3 -r1.12 ControlMap.hpp
--- ControlMap.hpp  10 Dec 2007 19:25:24 -  1.12
+++ ControlMap.hpp  27 Sep 2008 05:47:56 -
@@ -13,7 +13,7 @@
  ADVANCE, REHEAT, PROP,
  BRAKE, STEER, EXTEND, HEXTEND, LEXTEND,
  INCIDENCE, FLAP0, FLAP1, SLAT, SPOILER, VECTOR,
-  BOOST, CASTERING, PROPPITCH, PROPFEATHER,
+  BOOST, CASTERING, PROPPITCH, PROPFEATHER,PROPREVERSE,
   COLLECTIVE, CYCLICAIL, CYCLICELE, ROTORENGINEON,
   TILTYAW, TILTPITCH, TILTROLL,
   ROTORBRAKE, ROTORENGINEMAXRELTORQUE, ROTORRELTARGET,
Index: FGFDM.cpp
===
RCS file: /var/cvs/FlightGear-0.9/source/src/FDM/YASim/FGFDM.cpp,v
retrieving revision 1.55
diff -U 3 -r1.55 FGFDM.cpp
--- FGFDM.cpp   13 Apr 2008 21:12:36 -  1.55
+++ FGFDM.cpp   27 Sep 2008 05:47:57 -
@@ -954,6 +954,7 @@
 if(eq(name, CASTERING)) return ControlMap::CASTERING;
 if(eq(name, PROPPITCH)) return ControlMap::PROPPITCH;
 if(eq(name, PROPFEATHER)) return ControlMap::PROPFEATHER;
+if(eq(name, PROPREVERSE)) return ControlMap::PROPREVERSE;
 if(eq(name, COLLECTIVE)) return ControlMap::COLLECTIVE;
 if(eq(name, CYCLICAIL)) return ControlMap::CYCLICAIL;
 if(eq(name, CYCLICELE)) return ControlMap::CYCLICELE;
Index: PropEngine.cpp
===
RCS file: /var/cvs/FlightGear-0.9/source/src/FDM/YASim/PropEngine.cpp,v
retrieving revision 1.18
diff -U 3 -r1.18 PropEngine.cpp
--- PropEngine.cpp  27 Feb 2006 23:35:02 -  1.18
+++ PropEngine.cpp  27 Sep 2008 05:47:57 -
@@ -42,6 +42,12 @@
 _prop-setPropPitch(proppitch);
 }
 
+void PropEngine::setPropReverse(bool state)
+{
+// toggle Propeller reverse
+_prop-setPropReverse(state);
+}
+
 void PropEngine::setPropFeather(int state)
 {
 // toggle prop feathering on/off
Index: PropEngine.hpp
===
RCS file: /var/cvs/FlightGear-0.9/source/src/FDM/YASim/PropEngine.hpp,v
retrieving revision 1.8
diff -U 3 -r1.8 PropEngine.hpp
--- PropEngine.hpp  13 Dec 2004 23:48:43 -  1.8
+++ PropEngine.hpp  27 Sep 2008 05:47:57 -
@@ -18,6 +18,7 @@
 void setMagnetos(int magnetos);
 void setAdvance(float advance);
 void setPropPitch(float proppitch);
+void setPropReverse(bool state);
 void setVariableProp(float min, float max);
 void setPropFeather(int state);
 void setGearRatio(float ratio) { _gearRatio = ratio; }
Index: Propeller.cpp
===
RCS file: /var/cvs/FlightGear-0.9/source/src/FDM/YASim/Propeller.cpp,v
retrieving revision 1.6
diff -U 3 -r1.6 Propeller.cpp
--- Propeller.cpp   26 Feb 2006 16:46:51 -  1.6
+++ Propeller.cpp   27 Sep 2008 05:47:57 -
@@ -25,6 +25,7 @@
 _manual = false;
 _proppitch = 0;
 _propfeather = 0;
+_propreverse = 0;
 }
 
 void Propeller::setTakeoff(float omega0, float power0)
@@ -68,6 +69,11 @@
 _propfeather = (state != 0);
 }
 
+void Propeller::setPropReverse(bool state)
+{
+_propreverse = state;
+}
+
 void 

Re: [Flightgear-devel] Propeller reverse ...

2008-09-27 Thread Detlef Faber
Am Samstag, den 27.09.2008, 23:00 -0700 schrieb Syd:
 Hi all , and Andy,
 I've added propeller reverse to YASim , with Controlmap type 
 PROPREVERSE ... I've tested it with the piston and turboprop , and seems 
 to be working well . Just wonder if this could be added if Andy approves .
 Of course , it might need improvements , but I thought I'd include the 
 patch for comments , viewing , etc.
 All it does is multiply the thrust by -0.2 when the chosen property, 
 (/controls/engines/engine/reverser, here), is true. Wasn't sure what 
 the best factor was , most of the data sheets i've
 read show blade reverse angles of about -8 degrees.
 Hope it can be included ...
 Cheers
  
That is great news!

It would be a really valuable addition fo the PC-6 and Albatross too.




-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] Does CVS terrasync work reliably?

2008-09-27 Thread Alex Perry
The CVS version of terrasync seems to be relying on rsync to notice
that the source directory contains more than one file.  That's what
triggers it to create the destination directory.  Seems to me this
will fail if there is only one file in the source directory, since it
will instead rename that file to the name of the directory.  Am I
missing something?  I've changed my command lines slightly to
compensate.

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] New nasal drop, new syntax

2008-09-27 Thread Vivian Meazza
Alex Perry wrote

 Negative 8-).
 When I recompiled SG and FG after pulling the update in, FGFS started
 working.
 Either there was something else that got fixed by this extra recompile
 iteration,
 or there is some architecture specific bug you happened to provide a fix
 for.
 

How interesting. Here, I had got as far as identifying that before about 12
Aug there were no staggers, and afterwards the staggers were such that FG
was unusable. Profiling indicated that hash.c was involved, and that meant
that nasal was the likely cause. But, try as I would, I could not pin down
any individual file.

The new Nasal has pretty much solved that problem. Occasional staggers
remain, but that is probably to do with threading, and reloading
object/scenery etc. Profiling shows that hash.c is no longer the tall pole
in the tent, and there are no other particular problems. 

So while we know how, we don't know why. Was there too much Nasal, or a
dodgy file, or was the build defective in the first place, and the rebuild
solved that problem? I've spent too long on this problem to try to go back
and recreate it; I'm just very pleased that it has gone away.

Well done Andy and Melchior

Vivian   



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Bug or Feature? Or an accidently way to landinglights; -)?

2008-09-27 Thread Melchior FRANZ
* Heiko Schulz -- Saturday 27 September 2008:
 Can some explain why it loads the wrong file?

That's an intentional bug, a.k.a. (mis)feature. You can also call
it poor design. It was introduced after a discussion in this thread
(where my objection was overruled):

  
http://www.mail-archive.com/flightgear-devel%40lists.sourceforge.net/msg12849.html

And here's another thread where someone called Heiko complains
about it ... ;-)

  
http://www.mail-archive.com/flightgear-devel%40lists.sourceforge.net/msg15466.html

That feature is also why I have to redefine the OSG_FILE_PATH
environment variable, so that OSG doesn't use the shiny OSG
demo cow.osg instead of our own cow.ac.

m.

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel