[prev in list] [next in list] [prev in thread] [next in thread] 

List:       flightgear-cvs
Subject:    [Flightgear-cvslogs] CVS: data/Aircraft/A-6E/Nasal A-6E.nas, NONE,
From:       Melchior Franz <mfranz () flightgear ! org>
Date:       2007-03-29 20:23:25
Message-ID: E1HX19Z-0005HI-00 () baron ! me ! umn ! edu
[Download RAW message or body]

Update of /var/cvs/FlightGear-0.9/data/Aircraft/A-6E/Nasal
In directory baron:/tmp/cvs-serv20250/Nasal

Added Files:
	A-6E.nas 
Log Message:
Alexis BORY: update (textures, instruments, etc.); still work in progress


--- NEW FILE ---
# Simple script moving a ballast from one Yasim weight point to another
# depending on the airspeed of the a/c. 



var UPDATE_PERIOD = 0.2;

var kts = nil;
var new_aft = nil;
var new_fwd = nil;

update_loop = func {
	kts = getprop("velocities/airspeed-kt");
	aft_ballast = getprop("sim/model/A-6E/controls/flight/CG-trim-aft");
	fwd_ballast = getprop("sim/model/A-6E/controls/flight/CG-trim-fwd");
	if (kts < 150) {
		new_fwd = 0;
	} else {
		new_fwd = 30*(kts-150);
	}
	if (new_fwd > 7000) { new_fwd = 7000 }
	new_aft = 7000 - new_fwd;
	
	setprop("sim/model/A-6E/controls/flight/CG-trim-aft", new_aft);
	setprop("sim/model/A-6E/controls/flight/CG-trim-fwd", new_fwd );
	settimer(update_loop, UPDATE_PERIOD);
}




wait_for_fdm = func {
	if (getprop("/position/altitude-agl-ft")) {
		update_loop();
	} else {
		settimer(wait_for_fdm, 1);
	}
}


settimer(wait_for_fdm, 0);


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Flightgear-cvslogs mailing list
Flightgear-cvslogs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-cvslogs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic