Board index FlightGear Support Installation Linux

realflight interface - recognized but not able to calibrate

Installing FlightGear, scenery, aircraft etc. on Linux systems like Ubuntu.

realflight interface - recognized but not able to calibrate

Postby kokopeli » Sat Jan 18, 2020 9:44 pm

Ubuntu 18.04 - FlightGear 2018.1.1
ASUS mother board M5A78L-M LX PLUS
Graphics card - 2048MB ATI Radeon R7 200 series
Under JOYSTICK CONFIGURATION
I see
Great Planes realflight interface
automatically recognized.
I select that I get no response when I move the joysticks on my DX6i radio connected to the interface.
When I press the RESET/REWIND button on the interface box the X appears next to the THROTTLE UP control and disappears when I release the button.
But no other responses when I move joy sticks or hit buttons and switches on my radio.
I am certain that the radio/interface/computer hardware are working well together because when I boot into Windows 10 on the same computer and run RealFlight 7.5 the control system works.
Of course I would like to ditch my W10 system and switch to FlightGear on Linux.
Any ideas how to fix this.
ps. I do find the file:
/home/wjbite/.fgfs/Input/Joysticks/GREAT-PLANES-RealFlight-Interface.xml
When I open it I see:

Code: Select all
<?xml version="1.0"?>

<PropertyList>
  <name type="string">GREAT PLANES RealFlight Interface</name>
  <axis>
    <desc type="string">Aileron</desc>
    <binding>
      <command type="string">property-scale</command>
      <property type="string">/controls/flight/aileron</property>
      <factor type="double">1</factor>
      <offset type="double">0</offset>
    </binding>
  </axis>
  <axis n="1">
    <desc type="string">Elevator</desc>
    <binding>
      <command type="string">property-scale</command>
      <property type="string">/controls/flight/elevator</property>
      <factor type="double">-1</factor>
      <offset type="double">0</offset>
    </binding>
  </axis>
  <axis n="2">
    <desc type="string">Throttle (all)</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.throttleAxis();</script>
    </binding>
  </axis>
  <button>
    <desc type="string">Brakes</desc>
    <repeatable type="string">false</repeatable>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.applyBrakes(1);</script>
    </binding>
    <mod-up>
      <binding>
        <command type="string">nasal</command>
        <script type="string">controls.applyBrakes(0);</script>
      </binding>
    </mod-up>
  </button>
  <button n="1">
    <desc type="string">Elevator Trim Down</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.elevatorTrim(1);</script>
    </binding>
    <repeatable type="double">1</repeatable>
  </button>
  <button n="2">
    <desc type="string">Throttle Up</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.incThrottle(0.01, 1.0);</script>
    </binding>
    <repeatable type="double">1</repeatable>
  </button>
</PropertyList>


Maybe that will help you help me, eh?
Thanks,
Walt
Last edited by Johan G on Mon Mar 16, 2020 11:17 pm, edited 1 time in total.
Reason: Added [code] tags
kokopeli
 
Posts: 15
Joined: Sat Jan 18, 2020 9:18 pm
Location: Victor, NY USA
Version: 2019.1.1
OS: Ubuntu 2020.04

Re: realflight interface - recognized but not able to calibr

Postby wkitty42 » Sat Jan 18, 2020 9:51 pm

kokopeli wrote in Sat Jan 18, 2020 9:44 pm:
Code: Select all
<?xml version="1.0"?>

<PropertyList>
  <name type="string">GREAT PLANES RealFlight Interface</name>
  <axis>
    <desc type="string">Aileron</desc>
    <binding>
      <command type="string">property-scale</command>
      <property type="string">/controls/flight/aileron</property>
      <factor type="double">1</factor>
      <offset type="double">0</offset>
    </binding>
  </axis>
  <axis n="1">
    <desc type="string">Elevator</desc>
    <binding>
      <command type="string">property-scale</command>
      <property type="string">/controls/flight/elevator</property>
      <factor type="double">-1</factor>
      <offset type="double">0</offset>
    </binding>
  </axis>
  <axis n="2">
    <desc type="string">Throttle (all)</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.throttleAxis();</script>
    </binding>
  </axis>
  <button>
    <desc type="string">Brakes</desc>
    <repeatable type="string">false</repeatable>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.applyBrakes(1);</script>
    </binding>
    <mod-up>
      <binding>
        <command type="string">nasal</command>
        <script type="string">controls.applyBrakes(0);</script>
      </binding>
    </mod-up>
  </button>
  <button n="1">
    <desc type="string">Elevator Trim Down</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.elevatorTrim(1);</script>
    </binding>
    <repeatable type="double">1</repeatable>
  </button>
  <button n="2">
    <desc type="string">Throttle Up</desc>
    <binding>
      <command type="string">nasal</command>
      <script type="string">controls.incThrottle(0.01, 1.0);</script>
    </binding>
    <repeatable type="double">1</repeatable>
  </button>
</PropertyList>


please wrap your xml code in code tags like so
Code: Select all
[code]<xml code here>[/code]

when done, it should look like my quote of your code above...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9148
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: realflight interface - recognized but not able to calibr

Postby kokopeli » Sun Jan 19, 2020 6:43 pm

okay I will try to do that wrapping.
Although it is no "my" code - it is just from the .xml file provided automatically by realflight for my interface.
Maybe wrapping it make it more readable for those who know how to write that code?
here goes:


Code: Select all
<name type="string">GREAT PLANES RealFlight Interface</name>
<axis>
<desc type="string">Aileron</desc>
<binding>
<command type="string">property-scale</command>
<property type="string">/controls/flight/aileron</property>
<factor type="double">1</factor>
<offset type="double">0</offset>
</binding>
</axis>
<axis n="1">
<desc type="string">Elevator</desc>
<binding>
<command type="string">property-scale</command>
<property type="string">/controls/flight/elevator</property>
<factor type="double">-1</factor>
<offset type="double">0</offset>
</binding>
</axis>
<axis n="2">
<desc type="string">Throttle (all)</desc>
<binding>
<command type="string">nasal</command>
<script type="string">controls.throttleAxis();</script>
</binding>
</axis>
<button>
<desc type="string">Brakes</desc>
<repeatable type="string">false</repeatable>
<binding>
<command type="string">nasal</command>
<script type="string">controls.applyBrakes(1);</script>
</binding>
<mod-up>
<binding>
<command type="string">nasal</command>
<script type="string">controls.applyBrakes(0);</script>
</binding>
</mod-up>
</button>
<button n="1">
<desc type="string">Elevator Trim Down</desc>
<binding>
<command type="string">nasal</command>
<script type="string">controls.elevatorTrim(1);</script>
</binding>
<repeatable type="double">1</repeatable>
</button>
<button n="2">
<desc type="string">Throttle Up</desc>
<binding>
<command type="string">nasal</command>
<script type="string">controls.incThrottle(0.01, 1.0);</script>
</binding>
<repeatable type="double">1</repeatable>
</button>
</PropertyList>
>
Last edited by Johan G on Mon Mar 16, 2020 11:20 pm, edited 1 time in total.
Reason: Fixed broken [code] tag (first tag was [code2] instead of [code]).
kokopeli
 
Posts: 15
Joined: Sat Jan 18, 2020 9:18 pm
Location: Victor, NY USA
Version: 2019.1.1
OS: Ubuntu 2020.04

Re: realflight interface - recognized but not able to calibr

Postby kokopeli » Sun Jan 19, 2020 6:44 pm

Whoops - did not work :(
kokopeli
 
Posts: 15
Joined: Sat Jan 18, 2020 9:18 pm
Location: Victor, NY USA
Version: 2019.1.1
OS: Ubuntu 2020.04

Re: realflight interface - recognized but not able to calibr

Postby wkitty42 » Mon Jan 20, 2020 12:20 am

you can edit your posts... there is or should be an edit button on the top right of them ;)

so now that you know how, you can edit your first post and fix that one... use the code tag on the left side of the full editor instead of the one on the right side which is for something else... then our extraneous messages can be removed to clean up the topic...

and yes, having the code formatted does help in reading and understanding it...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9148
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: realflight interface - recognized but not able to calibr

Postby Maerchenprinz » Mon Jan 20, 2020 2:19 pm

Hi kokopeli!

You can install th Ubuntu package "joystick" (or "joysticks"?), which includes jscal to calibrate.
In a terminal, enter
Code: Select all
jscal -c /dev/input/js0

Or is it /input/dev/js0? -Sorry, I write from memory, not at my computer right now. Anyway, js0 is usually the first recognized joystick, maybe yours is named otherwise, simply check in your file browser.
Then, I doubt that something like
Code: Select all
<command type="string">property-scale</command>
<property type="string">/controls/flight/aileron</property>

works, it shoud be
Code: Select all
<command>property-scale</command>
<property type="double">/controls/flight/aileron</property>

aileron is definetly a double, not a string.
Take a look at the link that Alan gave you in your other topic; I couldn't find your joystick there, but simply copying a file from a similar joystick should give you a good example of how such file should look like and maybe even give you first results.
Link to that file in the file "joysticks.xml" in your fg-home folder to make it look something like that:
Code: Select all
<PropertyList>
   <js n="0" include="Input/Joysticks/Local/joystick_0.xml"/>
</PropertyList>

I think you get the idea...
And last, but not least, remove the "2" from [code2] to make your post human readable! :P
(You can also use the fifth icon in the edit menu...)
I hope, I haven't forgotten anything!

Ciao,

Adrian
User avatar
Maerchenprinz
 
Posts: 306
Joined: Thu Mar 15, 2007 6:24 pm
Location: Bochum, it's better, much better than you think!
Callsign: Adrian

Re: realflight interface - recognized but not able to calibr

Postby WoodSTokk » Mon Jan 20, 2020 4:43 pm

If your window manager uses GTK, you can also install the package 'jstest-gtk'.
Thats a GUI for jstest where you can calibrate your joystick.

@Maerchenprinz:
right, it is:
Code: Select all
/dev/input/js0
WoodSTokk
 
Posts: 1077
Joined: Tue Oct 17, 2017 3:30 pm
Location: Milky Way/Sol/Earth/Europe
Callsign: SX-W57
IRC name: WoodSTokk
Version: 2020.4.0
OS: Debian Bullseye

Re: realflight interface - recognized but not able to calibr

Postby kokopeli » Sun Jun 07, 2020 3:18 pm

Thanks for your replies.
Although I have not yet satisfactorily learned all the details about you were trying to help me in editing, my problem is solved by using a larger hammer :)
I bought a Logitech EX 3D PRO joystick and am now up and running.
I will come back later and study your suggestions to learn more.
Thanks again,
Walt Bankes
kokopeli
 
Posts: 15
Joined: Sat Jan 18, 2020 9:18 pm
Location: Victor, NY USA
Version: 2019.1.1
OS: Ubuntu 2020.04


Return to Linux

Who is online

Users browsing this forum: No registered users and 2 guests