Ron Jensen ha scritto:
> On Mon, 2009-11-23 at 02:26 +0100, Nicola Quargentan wrote:
> 
>> I found this line on 737-300 (but there are they also in more aircraft):
> [snip 2d panel code]
> 
>> 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 ).
> 
> Below are Nicola's find translated into joystick compatible terms.
> Button 0 will decrease the nav radio standby freq, button 1 increases
> the standby freq and button 2 swaps the standby and active frequencies.
> I'm not 100% sure the resolution tag is used for joysticks...
> 
>  <button n="0">
>   <desc>nav frequency decrease</desc>
>   <binding>
>      <command>property-adjust</command>
>      <property "instrumentation/nav[0]/frequencies/standby-mhz"/>
>      <step>-0.05</step>
>      <min>108.0</min>
>      <max>117.95</max>
>      <resolution>0.05</resolution>
>      <wrap>true</wrap>
>   </binding>
>  </button>
>  
> <button n="1">
>   <desc>nav frequency increase</desc>
>   <binding>
>      <command>property-adjust</command>
>      <property "instrumentation/nav[0]/frequencies/standby-mhz"/>
>      <step>0.05</step>
>      <min>108.0</min>
>      <max>117.95</max>
>      <resolution>0.05</resolution>
>      <wrap>true</wrap>
>   </binding>
> </button>
> 
> 
> <button n="2">
>   <desc>nav frequency swap</desc>
>   <repeatable>false</repeatable>
>   <binding>
>      <command>property-assign</command>
>      <property "instrumentation/nav[0]/frq-swap-btn"/>
>      <value type="int">1</value>
>   </binding>
>   <binding>
>      <command>property-swap</command>
>      <property "instrumentation/nav[0]/frequencies/selected-mhz"/>
>      <property "instrumentation/nav[0]/frequencies/standby-mhz"/>
>   </binding>
>   <mod-up>
>      <binding>
>         <command>property-assign</command>
>         <property "instrumentation/nav[0]/frq-swap-btn"/>
>         <value type="int">0</value>
>      </binding>
>   </mod-up>
> </button> 
> 

First thank you for your settings :)

But what about the use of axis instead of buttons?
For select the frequencies, buttons are good but I'm not sure going well 
for radial selection: I can buy a rotary switch continuous, but how many 
laps I have to do to move the first radial of 180 degrees, for example? 
I do not know if I explained well the question.
I thought of using an 12 bit encoder with a resolution of 4096/360, more 
than enough to select one radial. Obviously I should manage it as an 
axis of the joystick.

Some opinion? Thanks.

-- 
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

Reply via email to