[Flightgear-devel] Github and aircraft
I've been using GitHub and its API recently on a couple of projects. That got me thinking about using github for aircraft, with each aircraft as a repository, as an experiment. I've already created a little python application to create the local and remote git repositories and to push changes. Problem is that github has a quota, however I fired off an email and below is the exchange. I don't know if this will be of an help to FG, but its an idea. pete - Can github support a large opensource repository. FlightGear is an open source flightsimulator (flightgear.org) with a huge data set, currently stored in CVS. One of the data elements to move and am researching, is the Aircraft data http://cvs.flightgear.org/viewvc/data/Aircraft/. The idea would be to take all 250+ aircraft, each with its own directory and move them to github, each with their own repository. The data is currently 2.4g+, but user quota is 300mb. This could be achieved by multiple users, however it would be easier to have one account eg flightgear-aircraft/*. Can you accomodate this ? - Support Staff 2 http://support.github.com/discussions/email/6116-contact-flightgear?anon_token=eb80b5e74c2fd909033afb3966002ba42800ff13#comment_1274617 Posted by *Tekkub http://support.github.com/users/11603* on March 21, 2010 @ 04:38 AM 1. You're more than welcome here. What you plan, splitting up into many repos, is exactly what we suggest. No one likes cloning a single 2.4GiB repo. Let us know if you need any help. -- Splitting up is what we want to do, however the max quota for a single user is around 300mb. We'd want ideally to have all the aircraft under a single user initially eg flightgear-aircraft/** The question is can github extend the quota for this user to more around 3g -- 1. Support Staff 4 http://support.github.com/discussions/email/6116-contact-flightgear?anon_token=eb80b5e74c2fd909033afb3966002ba42800ff13#comment_1274842 Posted by *Tekkub http://support.github.com/users/11603* on March 21, 2010 @ 06:12 AM You can ignore the quota. 1. Is it an unknown secret the Quota ? The user I have created is flightgear-aircraft and am creating a little python application and github api (very nice) to create and sync repositories. If it doesn't work, for a variety of reasons, then I'll delete the user to save precious space. is that ok ? regards pete - 1. Support Staff 6 http://support.github.com/discussions/email/6116-contact-flightgear?anon_token=eb80b5e74c2fd909033afb3966002ba42800ff13#comment_1274878 Posted by *Tekkub http://support.github.com/users/11603* on March 21, 2010 @ 06:28 AM It's a soft quota, we only enforce it in cases of abuse. So don't go abusing it! - 1. we wont.. thanks ;-))) pete -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Depth order problem : 3d objects seen through 3d clouds
Am I the only one seeing that : http://frbouvi.free.fr/flightsim/fgfs-depth-buffer-problem.jpg ? Regards, -Fred -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Depth order problem : 3d objects seen through 3d
Frederic Bouvier wrote: Am I the only one seeing that : http://frbouvi.free.fr/flightsim/fgfs-depth-buffer-problem.jpg ? No ;-) Martin. -- Unix _IS_ user friendly - it's just selective about who its friends are ! -- -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Depth order problem : 3d objects seen through 3d
Martin Spott wrote: Frederic Bouvier wrote: Am I the only one seeing that : http://frbouvi.free.fr/flightsim/fgfs-depth-buffer-problem.jpg ? No ;-) This is a very unfortunate side effect when the cloud depth-sorting was introduced. I didn't notice it when I committed that patch at the time. Erik -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Operating System
Leonardo Fabian Grodek wrote: Hi, I'm planning to buy a new PC with operating system. Is there any OS that is not supported by FlightGear? I want to be sure I'll be able to compile and run FlightGear. Is Windows 7 64-bit supported? Or should I better stay with Windows 7 32-bit. 64-bit should not be a problem, there is even a 64-bit windows binary available thanks to Fred. Erik -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] Setting up CVS
Hi Guys, I'm just setting up CVS on my Mac while I'm not at home and, being an idiot, I've forgotten the CVS settings, as such I'm getting a No Such Repository error. Could someone please remind me of the host and root I should be using? Many thanks, Alex -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Github and aircraft
Hi Pete, Sounds very interesting, I've had a look at GitHub and I've a few questions, if you don't mind answering (purely as I don't know anyone else with experience of it) Is there any support for media files, such as Sounds/Images with version control or is it just text/code based? Also can you do offline editing or is it all online via their own editors? Excuse my noob questions, I did have a look there but haven't had chance to have a proper play. Alex On 21 Mar 2010, at 06:47, Pete Morgan wrote: I've been using GitHub and its API recently on a couple of projects. That got me thinking about using github for aircraft, with each aircraft as a repository, as an experiment. I've already created a little python application to create the local and remote git repositories and to push changes. Problem is that github has a quota, however I fired off an email and below is the exchange. I don't know if this will be of an help to FG, but its an idea. pete - Can github support a large opensource repository. FlightGear is an open source flightsimulator (flightgear.org) with a huge data set, currently stored in CVS. One of the data elements to move and am researching, is the Aircraft data http://cvs.flightgear.org/viewvc/data/Aircraft/. The idea would be to take all 250+ aircraft, each with its own directory and move them to github, each with their own repository. The data is currently 2.4g+, but user quota is 300mb. This could be achieved by multiple users, however it would be easier to have one account eg flightgear-aircraft/*. Can you accomodate this ? - Support Staff 2 http://support.github.com/discussions/email/6116-contact-flightgear?anon_token=eb80b5e74c2fd909033afb3966002ba42800ff13#comment_1274617 Posted by *Tekkub http://support.github.com/users/11603* on March 21, 2010 @ 04:38 AM 1. You're more than welcome here. What you plan, splitting up into many repos, is exactly what we suggest. No one likes cloning a single 2.4GiB repo. Let us know if you need any help. -- Splitting up is what we want to do, however the max quota for a single user is around 300mb. We'd want ideally to have all the aircraft under a single user initially eg flightgear-aircraft/** The question is can github extend the quota for this user to more around 3g -- 1. Support Staff 4 http://support.github.com/discussions/email/6116-contact-flightgear?anon_token=eb80b5e74c2fd909033afb3966002ba42800ff13#comment_1274842 Posted by *Tekkub http://support.github.com/users/11603* on March 21, 2010 @ 06:12 AM You can ignore the quota. 1. Is it an unknown secret the Quota ? The user I have created is flightgear-aircraft and am creating a little python application and github api (very nice) to create and sync repositories. If it doesn't work, for a variety of reasons, then I'll delete the user to save precious space. is that ok ? regards pete - 1. Support Staff 6 http://support.github.com/discussions/email/6116-contact-flightgear?anon_token=eb80b5e74c2fd909033afb3966002ba42800ff13#comment_1274878 Posted by *Tekkub http://support.github.com/users/11603* on March 21, 2010 @ 06:28 AM It's a soft quota, we only enforce it in cases of abuse. So don't go abusing it! - 1. we wont.. thanks ;-))) pete -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Flightgear-devel mailing list
Re: [Flightgear-devel] Bug: nav[12] selected radial
On 20 Mar 2010, at 23:36, Curtis Olson wrote: The nav radio does not work in magnetic headings. It works in which ever alignment the station was setup in. In the 60's when GEP was installed, it was aligned with magnetic north at that time. In the subsequent years, the actual magnetic north has shifted several degrees, but the FAA does not go in and adjust the orientation of the station radials every few months. This would cause all kinds of cascading changes with radials, victor highways, intersection points, etc. Instead, they just leave it where it is. So it's key to align the vor station with the defined offset, not the current magnetic offset ... Sorry, yes, I was aware of this, it's the 'twist' parameter, which comes from the dreaded 'multiuse' column in the nav.dat data. navradio.cxx *does* reference /environment/magnetic-variation-deg, but only as part of the nav-slaved-to-gps option which I will be attacking soon. Form looking at the navradio code, I do *think* the alignment/twist logic is ok: nav[n]/heading-deg is the true heading to the station, computed by wgs84_inverse, and nav[n]/radials/actual-deg is computed as the true heading minus the twist as specified in degrees in nav.data. As ever, I am not a pilot, so I am happy to be corrected, but the above description does fit with my understanding of the real-world situation, and Curt's description above. James -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Setting up CVS
Alexander Barrett wrote: Hi Guys, I'm just setting up CVS on my Mac while I'm not at home and, being an idiot, I've forgotten the CVS settings, as such I'm getting a No Such Repository error. Could someone please remind me of the host and root I should be using? You can find them here: http://flightgear.org/cvs/anoncvs.html Erik -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Setting up CVS
Erik, Thanks, I did try those, I guess its some other problem with the setup on my Mac as those just get me the No Such Repository error. Alex On 21 Mar 2010, at 11:01, Erik Hofman wrote: Alexander Barrett wrote: Hi Guys, I'm just setting up CVS on my Mac while I'm not at home and, being an idiot, I've forgotten the CVS settings, as such I'm getting a No Such Repository error. Could someone please remind me of the host and root I should be using? You can find them here: http://flightgear.org/cvs/anoncvs.html Erik -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Bug: nav[12] selected radial
On Sat, Mar 20, 2010 at 9:41 PM, John Denker j...@av8n.com wrote: There was a bug reported under the Subject: [Flightgear-devel] Setting OBS on command line/.fgfsrc a couple of weeks ago ... but it only affected nav1 IIRC. And it had nothing to do with magnetic variation IIRC. Perhaps not, but try this: fgfs --ndb=YRR --altitude=3000 --vc=100 --nav1=340:114.6 When it starts, the radial on the nav1 indicator will be set not to 340 but to the true equivalent (around 326). When you start at an airport, the radial will be aligned with the runway no matter what you put on the command line -- that's probably the GPS bug. All the best, David -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Setting up CVS
If you try to checkout repository :pserver:cvsgu...@cvs.flightgear.org:/var/cvs/FlightGear-2.0.0 as one of the forumer, you'll get this error because there is really no such repository. If you simply copy/paste the suggested :pserver:cvsgu...@cvs.flightgear.org:/var/cvs/FlightGear-0.9 repository, you shouldn't encouter an error -Fred Le 21/03/2010 12:09, Alexander Barrett a écrit : Erik, Thanks, I did try those, I guess its some other problem with the setup on my Mac as those just get me the No Such Repository error. Alex On 21 Mar 2010, at 11:01, Erik Hofman wrote: Alexander Barrett wrote: Hi Guys, I'm just setting up CVS on my Mac while I'm not at home and, being an idiot, I've forgotten the CVS settings, as such I'm getting a No Such Repository error. Could someone please remind me of the host and root I should be using? You can find them here: http://flightgear.org/cvs/anoncvs.html -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Setting up CVS
Fred, Thanks for the reply, I think it was some problem with my Dev tools. I re-installed the standard Apple development suite and now it seems to be working fine. Thanks for all your help though. Alex On 21 Mar 2010, at 11:19, Frederic Bouvier wrote: If you try to checkout repository :pserver:cvsgu...@cvs.flightgear.org:/var/cvs/FlightGear-2.0.0 as one of the forumer, you'll get this error because there is really no such repository. If you simply copy/paste the suggested :pserver:cvsgu...@cvs.flightgear.org:/var/cvs/FlightGear-0.9 repository, you shouldn't encouter an error -Fred Le 21/03/2010 12:09, Alexander Barrett a écrit : Erik, Thanks, I did try those, I guess its some other problem with the setup on my Mac as those just get me the No Such Repository error. Alex On 21 Mar 2010, at 11:01, Erik Hofman wrote: Alexander Barrett wrote: Hi Guys, I'm just setting up CVS on my Mac while I'm not at home and, being an idiot, I've forgotten the CVS settings, as such I'm getting a No Such Repository error. Could someone please remind me of the host and root I should be using? You can find them here: http://flightgear.org/cvs/anoncvs.html -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Github and aircraft
On Sunday 21 March 2010 11:50:01 Alexander Barrett wrote: Sounds very interesting, I've had a look at GitHub and I've a few questions, if you don't mind answering (purely as I don't know anyone else with experience of it) Is there any support for media files, such as Sounds/Images with version control or is it just text/code based? Also can you do offline editing or is it all online via their own editors? git supports binary files just fine. As github ist just hosting for a central repository, all editing is done offline anyway just like with the current CVS. Stefan -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Github and aircraft
Alexander Barrett wrote: Is there any support for media files, such as Sounds/Images with version control or is it just text/code based? We're having an automated GIT-mirror of the entire CVS base package here: http://mapserver.flightgear.org/git/gitweb.pl?p=fgdata for, well, I'd say at least a couple of years and as far as I can tell quite a few people are using it without major hassle. Cheers, Martin. -- Unix _IS_ user friendly - it's just selective about who its friends are ! -- -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] FGFS: Golden Rules for FGFS with OpenGL
On Fri, Feb 19, 2010 at 12:25 PM, Heiko Schulz aeitsch...@yahoo.de wrote: Hello Tim A bit late, but I was busy. You mentioned that you might add vertain things to this topic, if there is a wiki page. I found, that we already have such a page in the wiki, but seems to be outdated. Here you go: http://wiki.flightgear.org/index.php/Howto:_Improve_Framerates I've added a bit to this subject. Feel free to add questions or other hints. I'm also going to start a new page with the somewhat ironic title Why is Flightgear Slow? Tim -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Github and aircraft
Alexander Barrett wrote: Is there any support for media files, such as Sounds/Images with version control or is it just text/code based? We're having an automated GIT-mirror of the entire CVS base package here: http://mapserver.flightgear.org/git/gitweb.pl?p=fgdata for, well, I'd say at least a couple of years and as far as I can tell quite a few people are using it without major hassle. ...and it needs a better marketing! Can you prepare something, Curt can add to the web site's download section and something for the WIKI? Torsten -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Money and Contributions
Curtis Olson wrote: 2. No one has stepped forward and offered to invest the time and expertise for setting up a true non-profit. I personally do not have the knowledge or experience, nor do I have the time to maintain such an organization, keep records, file taxes, etc. etc. I don't know how much of a time commitment this would be, but for someone who knows nothing about it I think it would be a lot of time just to get up to speed, and when you are dealing with people's money, paying taxes, etc. you don't want to make rookie mistakes. Just had an email from PJ (Groklaw). It seems that http://www.softwarefreedom.org/ could possible help. --- 1. Free Software Foundation Europe has a program to help you set up a trust. It's called the Freedom Task Force: http://www.fsfe.org/projects/ftf/index.en.html http://www.fsfe.org/projects/ftf/index.en.html; 2. Software Freedom Law Center can help with that too or with a corporate setup. http://www.softwarefreedom.org/ http://www.softwarefreedom.org/ -- pete snip Non-profit Corporate Assistance SFLC helps FOSS projects develop and maintain legal status to help ensure their longevity. SFLC assists its clients with all stages of corporate existence, including formation and tax exemption, and helps projects with their contracts and governance. SFLC established and continues to serve as counsel to the Software Freedom Conservancy http://conservancy.softwarefreedom.org/, which provides an alternative to independent corporate formation for FOSS projects. SFLC directly represents many of the most significant existing FOSS conservancies, and provides formation assistance for new projects seeking to create similar conservancies. SFLC is also able to represent its clients in negotiations in a variety of situations. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Operating System
Hi, Flightgear does work on Windows 7. However if you plan to compile frequently you have to be quite good in helping yourself, because compile problems may arise from time to time. Personally I found Windows quite nasty for compiling Flightgear myself because the large checkout needs ages of computer time for indexing -- for almost no use at all. Preventing this is not the only thing you will have to do to get an compelling compile performance. If you want to go straight to the point and compile out of the box: Use Linux. Much faster in update/compile/fly turnarounds. If you are willing to invest some of your energy into the compile platform: go ahead use Windows and Visual Studio. Greetings, Olaf Hi, I'm planning to buy a new PC with operating system. Is there any OS that is not supported by FlightGear? I want to be sure I'll be able to compile and run FlightGear. Is Windows 7 64-bit supported? Or should I better stay with Windows 7 32-bit. Please Linux people don't laugh at me :( Thank you! Fabian -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] RMI instrument
Hello folks , This is a two pointer RMI . Its ADF and VOR source are changable from the property tree , or set in the instrumentation.xml file , and default to /instrumentation/nav and instrumentation/adf/indicated-bearing-deg for its input... Haven't decided if I should extend it with DME digit displays yet ... It requires a /systems/electrical/outputs/rmi voltage to operate... If someone could include this , I would appreciate it . Cheers // rmi.cxx - radio magnetic indicator. // Written by Syd Adams, started 2010. // // Copyright (C) 2010 Syd Adams // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License as // published by the Free Software Foundation; either version 2 of the // License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // // #include simgear/compiler.h #include string #include Main/fg_props.hxx #include Main/util.hxx #include Main/util.hxx #include rmi.hxx RMI::RMI ( SGPropertyNode *node ) : _name(node-getStringValue(name, rmi)), _num(node-getIntValue(number, 0)), _adf_source(node-getStringValue(adf-source, /instrumentation/adf/indicated-bearing-deg)), _vor_source(node-getStringValue(vor-source, /instrumentation/nav)) { } RMI::~RMI () { } void RMI::init () { string branch; string power; branch = /instrumentation/ + _name; power = /systems/electrical/outputs/ + _name; SGPropertyNode *rmi_node = fgGetNode(branch.c_str(), _num, true ); _adf_offset_node = rmi_node-getChild(ndb-bearing-offset, 0, true); _adf_offset_node-setDoubleValue(90.0); _vor_offset_node = rmi_node-getChild(vor-bearing-offset, 0, true); _vor_offset_node-setDoubleValue(90.0); _adf_source_node = rmi_node-getChild(adf-bearing-source, 0,true); _adf_source_node-setStringValue(_adf_source.c_str()); _vor_source_node = rmi_node-getChild(vor-bearing-source, 0,true); _vor_source_node-setStringValue(_vor_source.c_str()); _compass_heading_node = rmi_node-getChild(compass-mag-heading,0, true); _compass_heading_node-setDoubleValue(0); _serviceable_node = rmi_node-getChild(serviceable, 0, true); _serviceable_node-setBoolValue(true); _error_flag_node = rmi_node-getChild(error-flag, 0, true); _error_flag_node-setBoolValue(true); _power_node = fgGetNode(power.c_str(), _num, true ); } void RMI::update (double dt) { string adf_src = _adf_source_node-getStringValue(); string vor_src = _vor_source_node-getStringValue(); string vor_valid = vor_src+/data-is-valid; vor_src +=/heading-deg; if(_serviceable_node-getBoolValue() _power_node-getDoubleValue() 1){ _error_flag_node-setBoolValue(false); double tru_hdg = fgGetDouble(/orientation/heading-deg,0.0); double vor_hdg = fgGetDouble(vor_src.c_str(),0.0); double magvar = fgGetDouble(/environment/magnetic-variation-deg,0.0); double mag_hdg = tru_hdg-magvar; if(mag_hdg 0) mag_hdg +=360; filter_output(_compass_heading_node,mag_hdg,dt); double offset = fgGetDouble(_adf_source.c_str(), 90.0); _adf_offset_node-setDoubleValue(offset); offset = fgGetDouble(vor_src.c_str()); if(fgGetBool(vor_valid.c_str())){ offset = vor_hdg-tru_hdg; if(offset 180) offset -= 360; if(offset -180) offset += 360; }else offset = 90; filter_output(_vor_offset_node,offset,dt); }else{ _error_flag_node-setBoolValue(true); filter_output(_adf_offset_node,90,dt); filter_output(_vor_offset_node,90,dt); } } void RMI::filter_output(SGPropertyNode *hd,double tgt,double dt) { double deg = hd-getDoubleValue(); double new_deg = fgGetLowPass(deg,tgt, dt); hd-setDoubleValue(new_deg); } // end of rmi.cxx // rmi.hxx - radio magnetic indicator. // Written by Syd Adams, started 2010. // // Copyright (C) 2010 Syd Adams // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License as // published by the Free Software Foundation; either version 2 of the // License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // General Public License for more details. // // You should have received a copy of the GNU General Public