Re: [Flightgear-devel] flaps

2006-05-09 Thread Ampere K. Hardraade
On Monday 08 May 2006 15:22, Justin Smithies wrote:
 snip

 How do i get around that without changing the controls.nas script as other
 aircraft might need the 3 equal steps .
 I just want mine to have 7 steps we ll in fact if i may go a little further
 could i have the following positions ?

 snip

Try copying the relevant keybindings from keyboard.xml into your 
aircraft-set.xml, and use the nasal/nasal tags to invoke a modified copy 
of controls.nas.

Ampere


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] flaps

2006-05-08 Thread Justin Smithies
Hi all,
          I have a quick question that someone is bound to know the answer to.

On my aircraft model i need the flaps to step through 7 positions.
But i noticed that the nasal script controls.nas is hard coded to 3 equal 
positions only.

How do i get around that without changing the controls.nas script as other 
aircraft might need the 3 equal steps .
I just want mine to have 7 steps we ll in fact if i may go a little further 
could i have the following positions ?

0 Degree
1  
5  
15  
20  
25 
30  

Any fancy scripting ideas without changing any of the default FG source, just 
the aircrafts folder sources.
This has to work from any joystick file too and the default keyboard file.

Thanks in advance
Justin Smithies


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Flaps question

2006-05-08 Thread Lee Elliott
On Monday 08 May 2006 19:46, Justin Smithies wrote:
 Hi all,
   I have a quick question that someone is bound to
 know the answer to.

 On my aircraft model i need the flaps to step through 7
 positions. But i noticed that the nasal script controls.nas
 is hard coded to 3 equal positions only.

 How do i get around that without changing the controls.nas
 script as other aircraft might need the 3 equal steps .
 I just want mine to have 7 steps we ll in fact if i may go a
 little further could i have the following positions ?

 0 Degree
 1  
 5  
 15  
 20  
 25 
 30  

 Any fancy scripting ideas without changing any of the default
 FG source, just the aircrafts folder sources.
 This has to work from any joystick file too and the default
 keyboard file.

 Thanks in advance
 Justin Smithies

Easiest way is to suggest that you have a look at the 
A-10-set.xml file and scroll down to line 137 (comment header 
line) and try that.

Atm, this is just a branch beneath / but it could probably be 
moved in to one of the existing branches at some point.

LeeE



---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Flaps and landing gear extend and retract with no power? OK to add voltage checks?

2006-03-06 Thread AJ MacLeod
On Sunday 05 March 2006 00:41, Dave Perry wrote:
 I would like to add a voltage check before moving the flaps or landing
 gear in data/Nasal/controls.nas.  The proposed changes are underlined.
snipped proposed new flapsDown etc
 Since the pa24-250 configs and nasal switches check for voltage for all
 the other electrical devices, It bothered me that I could lower the
 flaps and retract the gear with the master switch off.
 If we model the electrical systems but the electrical devices continue
 to work with no power, then modeling failures becomes difficult.
 Comments?

I agree with your line of thought - but like others have pointed out, 
hardwiring this sort of thing which varies greatly in real life is a very 
bad idea.

The good news is that you can just use your proposed flapsDown etc functions 
anyway!  Just put them in a .nas file (and call them e.g. controls.flapsDown) 
and make sure it's included by the XML like any other bit of nasal.

Functions with the same name as the default ones are apparently used in 
preference; the Lightning for example (though a very bad place to go for 
examples of good nasal practice :-) overrides at least controls.flapsDown, 
braking and possibly others.  At least it does now, after a bit of prompting 
from Melchoir...

This way you can get any kind of behaviour you like when someone presses the 
flaps down key etc, without any possibility of affecting any other a/c.

Cheers,

AJ


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Flaps and landing gear extend and retract with no power? OK to add voltage checks?

2006-03-06 Thread David Megginson
On 04/03/06, Dave Perry [EMAIL PROTECTED] wrote:

 I would like to add a voltage check before moving the flaps or landing
 gear in data/Nasal/controls.nas.

My Warrior has manual flaps activated by a giant metal bar between the
seats, similar to a parking brake in a car -- I think that's true of
all PA-28s.  Instead of a motor hum, you hear a giant clunk whenever
you move the flaps.

Some aircraft have manual landing gear activated the same way (e.g.
not just a backup manual system).  I believe that the Mooney M20C is
one example, but I might be misremembering.

On larger aircraft with fly-by-wire systems, the major control
surfaces are also electronically controlled; on others, they are
hydraulically-assisted.  Those are also failure modes that we'll want
to model some day.  It would be a bad idea to hardcode any of these,
however -- there's just too much variety in how airplane controls
work.


All the best,


David

--
http://www.megginson.com/


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Flaps and landing gear extend and retract with no power? OK to add voltage checks?

2006-03-06 Thread Dave Perry

AJ MacLeod wrote:


On Sunday 05 March 2006 00:41, Dave Perry wrote:
 


I would like to add a voltage check before moving the flaps or landing
gear in data/Nasal/controls.nas.  The proposed changes are underlined.
   


snipped proposed new flapsDown etc
 


Since the pa24-250 configs and nasal switches check for voltage for all
the other electrical devices, It bothered me that I could lower the
flaps and retract the gear with the master switch off.
If we model the electrical systems but the electrical devices continue
to work with no power, then modeling failures becomes difficult.
Comments?
   



I agree with your line of thought - but like others have pointed out, 
hardwiring this sort of thing which varies greatly in real life is a very 
bad idea.


The good news is that you can just use your proposed flapsDown etc functions 
anyway!  Just put them in a .nas file (and call them e.g. controls.flapsDown) 
and make sure it's included by the XML like any other bit of nasal.


Functions with the same name as the default ones are apparently used in 
preference; the Lightning for example (though a very bad place to go for 
examples of good nasal practice :-) overrides at least controls.flapsDown, 
braking and possibly others.  At least it does now, after a bit of prompting 
from Melchoir...


This way you can get any kind of behaviour you like when someone presses the 
flaps down key etc, without any possibility of affecting any other a/c.
 


Thanks!
I wondered if something like that was possible.  I will try this 
tonight.  Actually, this gives me freedom to even better model the 
actual pa24-250 flap switch and response.


Regards,
Dave Perry


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] Flaps and landing gear extend and retract with no power? OK to add voltage checks?

2006-03-05 Thread Dave Perry
I would like to add a voltage check before moving the flaps or landing 
gear in data/Nasal/controls.nas.  The proposed changes are underlined.


flapsDown = func {
   if(arg[0] == 0) { return; }
_if(getprop(/systems/electrical/outputs/flaps)  8.0) {return; }
# Dave Perry added a check for voltage to the flaps 3/4/06
_if(props.globals.getNode(/sim/flaps) != nil) {
   stepProps(/controls/flight/flaps, /sim/flaps, arg[0]);
   return;
   }
   # Hard-coded flaps movement in 3 equal steps:
   val = 0.334 * arg[0] + getprop(/controls/flight/flaps);
   if(val  1) { val = 1 } elsif(val  0) { val = 0 }
   setprop(/controls/flight/flaps, val);
}

I think even the default generic electrical system supplies voltage to 
the flaps.  The landing gear may be more problematic as the gear could 
be hydrolic (and most of the electrical systems in fgfs don't supply 
power to the landing gear).  Here is that proposed change.

gearDown = func {
_if(getprop(/systems/electrical/outputs/landing-gear)  8.0) 
{return; }

# Dave Perry added a check for voltage to the flaps 3/4/06
_if (arg[0]  0) {
 setprop(/controls/gear/gear-down, 0);
   } elsif (arg[0]  0) {
 setprop(/controls/gear/gear-down, 1);
   }
}

Since the pa24-250 configs and nasal switches check for voltage for all 
the other electrical devices, It bothered me that I could lower the 
flaps and retract the gear with the master switch off.


If we model the electrical systems but the electrical devices continue 
to work with no power, then modeling failures becomes difficult.


Comments?
Dave Perry


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Flaps and landing gear extend and retract with no power? OK to add voltage checks?

2006-03-05 Thread Curtis L. Olson

Dave Perry wrote:

I would like to add a voltage check before moving the flaps or landing 
gear in data/Nasal/controls.nas.  The proposed changes are underlined.


flapsDown = func {
   if(arg[0] == 0) { return; }
_if(getprop(/systems/electrical/outputs/flaps)  8.0) {return; }
# Dave Perry added a check for voltage to the flaps 3/4/06
_if(props.globals.getNode(/sim/flaps) != nil) {
   stepProps(/controls/flight/flaps, /sim/flaps, arg[0]);
   return;
   }
   # Hard-coded flaps movement in 3 equal steps:
   val = 0.334 * arg[0] + getprop(/controls/flight/flaps);
   if(val  1) { val = 1 } elsif(val  0) { val = 0 }
   setprop(/controls/flight/flaps, val);
}

I think even the default generic electrical system supplies voltage to 
the flaps.  The landing gear may be more problematic as the gear could 
be hydrolic (and most of the electrical systems in fgfs don't supply 
power to the landing gear).  Here is that proposed change.

gearDown = func {
_if(getprop(/systems/electrical/outputs/landing-gear)  8.0) 
{return; }

# Dave Perry added a check for voltage to the flaps 3/4/06
_if (arg[0]  0) {
 setprop(/controls/gear/gear-down, 0);
   } elsif (arg[0]  0) {
 setprop(/controls/gear/gear-down, 1);
   }
}

Since the pa24-250 configs and nasal switches check for voltage for 
all the other electrical devices, It bothered me that I could lower 
the flaps and retract the gear with the master switch off.


If we model the electrical systems but the electrical devices continue 
to work with no power, then modeling failures becomes difficult.



I'm just wondering about manual flap systems (or non-electrically 
powered flap systems)?   In a separate project I implimented electric 
gear retraction and electric flaps, and made them so they only worked 
when the electrical system was on, but in that case I bypassed the 
standard gear/flap controls.  This worked since the aircraft can only be 
operated with a full set of hardware controls (we aren't trying to 
support every joystick or other input method under the sun.)


Curt.

--
Curtis Olsonhttp://www.flightgear.org/~curt
HumanFIRST Program  http://www.humanfirst.umn.edu/
FlightGear Project  http://www.flightgear.org
Unique text:2f585eeea02e2c79d7b1d8c4963bae2d



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Flaps and landing gear extend and retract with no power? OK to add voltage checks?

2006-03-05 Thread Andy Ross
Dave Perry wrote:
 I would like to add a voltage check before moving the flaps or
 landing gear in data/Nasal/controls.nas.  The proposed changes are
 underlined.

Adding aircraft-specific code to the generic control mappings is a bad
idea; that file is for Nasal code that is globally useful for
interpreting the user's control inputs.  It doesn't do system
simulation.

Why not do it in the aircraft configuration by driving the flaps from
some other property than /controls/flight/flaps and gating that on the
appropriate system-specific failure modes with some system-specific
Nasal?

Andy


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] Flaps/Gear/Load/Speed limits patch

2006-02-14 Thread Buchanan, Stuart
Hi All,

A patch to the Nasal limits code is available from
http://www.nanjika.co.uk/flightgear/limits2.tar.gz.

It consists of
- An improved limits.nas file using property listeners and the new Nasal
display code instead of timers and the original C-based display.
- Support for multiple flap limits. For example, the C182 now has limits
of 140, 120, 100 kts for flaps settings of 10, 20 and 30 degrees
respectively. This is much more accurate.
- New limits and help text for the C310 (taken from www.twincessna.org)

It also means we can back out the original source patch I submitted for
displaying text to the screen via src/Scripting/NasalDisplay.*

-Stuart




___ 
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel