Hal V. Engel ha scritto: > On Saturday 21 November 2009 03:14:35 pm Nicola Quargentan wrote: >> Hal V. Engel ha scritto: >>> On Thursday 19 November 2009 04:59:28 pm Nicola Quargentan wrote: >> cut... >> >>>> I will also build some knobs (like obs) to manage vor and adf: I want to >>>> use a Microchip pic whit some A/D converter (12bit) and an USB port. >>>> >>>> Has anyone tried the products of Saitek? >>>> Where I can find some documentation about my project? >>>> >>>> Thanks and sorry for my english. >>> You might consider using a joystick controller board like the ones here: >>> >>> http://www.lbodnar.dsl.pipex.com/ >> Thanks for the information, this gadget is pretty cool :) >> >>> These are inexpensive and allow for numerous analog inputs as well as >>> many buttons/switches. In addition binary encoders are also supported >>> (these would work nicely for the frequency control on a radio). You >>> should be able to use these to create things like a radio panels, trim >>> wheels, flap controls, switch panels and other controls for your custom >>> cockpit. You can use more than one and no special drivers are needed >>> (these are HID/USB joystick devices that work with off the self drivers). >>> So once you have something setup (like a radio stack) you would >>> interface it to flightgear just like you do with a normal joystick. >> Uhmm, I'm not sure how to operate the obs or adjust the nav frequency. >> Inside the XML files (like joystick) I haven't found anything that >> commands a knob of the radio. Do you know where I can find more complete >> documentation about this, or some examples? > > I don't think it would be that hard. I suspect that you might need to write > a > nasal script to handle it and in that script you would manipulate the > properties for the radio as the control was manipulated. There are some > joystick XML files that have nasal script in them to do other types of things > so you should be able to find some examples that will at least give you some > clues about how to go about it. It is easy to change various properties > inside a nasal script. Also I think there are likely others here that would > be able to point you toward examples that are a closer fit to what you want > to > do.
I found this line on 737-300 (but there are they also in more aircraft): <action> <name>nav frequency decrease</name> <button>0</button> <x>50</x> <y>35</y> <w>8</w> <h>8</h> <binding> <command>property-adjust</command> <property alias="../../../../params/nav-freq-standby-prop"/> <step>-0.05</step> <min>108.0</min> <max>117.95</max> <resolution>0.05</resolution> <wrap>true</wrap> </binding> </action> I found also: <action> <name>OBS small counter-clockwise rotation</name> <button>0</button> <x>-46</x> <y>-56</y> <w>12</w> <h>24</h> <binding> <command>property-adjust</command> <property>/instrumentation/nav[0]/radials/selected-deg</property> <step>1.0</step> <min>0</min> <max>360</max> <wrap>1</wrap> </binding> </action> I Think I can select nav frequencies and rotate OBS with button 0. But I didn't find any use of the axis ( for example, using a joystick ). -- Nicola Quargentan ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Flightgear-users mailing list Flightgear-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-users