Re: [Flightgear-devel] condition/mixture control

2008-01-28 Thread Melchior FRANZ
* SydSandy -- Monday 28 January 2008:
 Does anyone have any objection to binding the mixture  M/m
 control to the Condition control , since they both are fuel
 controls on different engines ?  

I object.

The functions controls.mixtureAxis() and controls.adjMixture()
should only do what their name says.

If you want to use the mixture property for condition, then
either just redefine the wrappers (whereby the conditionAxis()
function would yet have to be defined)

  controls.adjMixture = controls.adjCondition;
  controls.mixtureAxis = controls.conditionAxis;

or use the mixture property in the FDM config file instead of
the condition property (with a comment explaining it):

  - control-setting axis=/controls/engines/engine[0]/condition value=1.0/
  + control-setting axis=/controls/engines/engine[0]/mixture value=1.0/

m.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] condition/mixture control

2008-01-28 Thread SydSandy
On Mon, 28 Jan 2008 09:39:46 +0100
Melchior FRANZ [EMAIL PROTECTED] wrote:

 * SydSandy -- Monday 28 January 2008:
  Does anyone have any objection to binding the mixture  M/m
  control to the Condition control , since they both are fuel
  controls on different engines ?  
 
 I object.
 
 The functions controls.mixtureAxis() and controls.adjMixture()
 should only do what their name says.
 
 If you want to use the mixture property for condition, then
 either just redefine the wrappers (whereby the conditionAxis()
 function would yet have to be defined)
 
   controls.adjMixture = controls.adjCondition;
   controls.mixtureAxis = controls.conditionAxis;
 
 or use the mixture property in the FDM config file instead of
 the condition property (with a comment explaining it):
 
   - control-setting axis=/controls/engines/engine[0]/condition 
 value=1.0/
   + control-setting axis=/controls/engines/engine[0]/mixture value=1.0/
 
 m.

OK.
Nothing serious , just thought i'd ask ...
Cheers

-- 
SydSandy [EMAIL PROTECTED]

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] condition/mixture control

2008-01-28 Thread Melchior FRANZ
As a third possibility, you could define a simple alias in the
*-set.xml file:

  controls
  engines
  engine n=0
  condition alias=/controls/engines/engine[0]/mixture/
  /engine
  /engines
  /controls

Then you can use the condition property as much as you like,
while the controls wrappers don't have to be modified.

m.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] condition/mixture control

2008-01-28 Thread Anders Gidenstam
On Mon, 28 Jan 2008, Melchior FRANZ wrote:

 * SydSandy -- Monday 28 January 2008:
 Does anyone have any objection to binding the mixture  M/m
 control to the Condition control , since they both are fuel
 controls on different engines ?

 I object.

 The functions controls.mixtureAxis() and controls.adjMixture()
 should only do what their name says.

Hi,

I have a somewhat related question: In the current controls.nas 
mixtureAxis(), propellerAxis() and carbHeatAxis() operate on all engines, 
while throttleAxis() operates only on selected engines. IMHO the former 
functions ought to behave like the latter and only affect the selected 
engines. Or do multi engine aircraft usually have no way to control 
those parameters for individual engines?

Cheers,

Anders
-- 
---
Anders Gidenstam
mail: anders(at)gidenstam.org
WWW: http://www.gidenstam.org/FlightGear/JSBSim-LTA/

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] condition/mixture control

2008-01-27 Thread SydSandy
On Sun, 27 Jan 2008 18:37:19 -0800
SydSandy [EMAIL PROTECTED] wrote:

 Does anyone have any objection to binding the mixture  M/m control to the 
 Condition control , since they both are fuel controls on different engines ?
 Here I have just set this in the controls.nas file ...
 
 var mixtureAxis = func {
 var val = cmdarg().getNode(setting).getValue();
 if(size(arg)  0) { val = -val; }
 props.setAll(/controls/engines/engine, mixture, (1 - val)/2);
 props.setAll(/controls/engines/engine, condition, (1 - val)/2);
 }
 
 -- 

and this in keyboard.xml , of course...

 key n=77
  nameM/name
  descMixture leaner./desc
  repeatable type=booltrue/repeatable
  binding
   commandnasal/command
   script
   controls.adjMixture(-1)
   controls.adjCondition(-1)
   /script
  /binding
 /key

-- 
SydSandy [EMAIL PROTECTED]

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] condition/mixture control

2008-01-27 Thread SydSandy
Does anyone have any objection to binding the mixture  M/m control to the 
Condition control , since they both are fuel controls on different engines ?
Here I have just set this in the controls.nas file ...

var mixtureAxis = func {
var val = cmdarg().getNode(setting).getValue();
if(size(arg)  0) { val = -val; }
props.setAll(/controls/engines/engine, mixture, (1 - val)/2);
props.setAll(/controls/engines/engine, condition, (1 - val)/2);
}

-- 
SydSandy [EMAIL PROTECTED]

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel