Board index FlightGear Support Hardware

Joystick file: double values for "power" won't work

Joysticks, pedals, monitors.

Joystick file: double values for "power" won't work

Postby OE-LML » Fri Sep 18, 2020 9:19 pm

Hallo!

Win10, FG 2020.1.3
I was just changing "power"-values for the axes of my joystick. I noticed, although I entered it as a double value, it won't accept numbers with decimal point. Integer numbers like 1, 2, 3, ... work.
Is this a known issue or am I doing something wrong?

Example:

Code: Select all
  <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>
      <power type="double">1.7</power>
    </binding>
  </axis>


Thanks in advance.
cu.
OE-LML
 
Posts: 88
Joined: Wed Nov 14, 2018 11:18 pm
Location: irgendwo in der FIR LOVV

Re: Joystick file: double values for "power" won't work

Postby Johan G » Sat Sep 19, 2020 6:58 am

OE-LML wrote in Fri Sep 18, 2020 9:19 pm:[...] although I entered it as a double value, it won't accept numbers with decimal point. Integer numbers like 1, 2, 3, ... work.
Is this a known issue or am I doing something wrong?

I think that property only can be an integer, judging from Bindings#property-scale on the FlightGear wiki.

If you in FlightGear open up the property browser with "/" and Ctrl-leftclick a line with a single period "." to enter its verbose mode, you will see what type each property is. You should find the bindings for an axis in /input/joysticks/js[m]/axis[n]/bindings, where m and n are integers enumerating your input devices and their axis.
Low-level flying — It's all fun and games till someone looses an engine. (Paraphrased from a YouTube video)
Improving the Dassault Mirage F1 (Wiki, Forum, GitLab. Work in slow progress)
Some YouTube videos
Johan G
Moderator
 
Posts: 6634
Joined: Fri Aug 06, 2010 6:33 pm
Location: Sweden
Callsign: SE-JG
IRC name: Johan_G
Version: 2020.3.4
OS: Windows 10, 64 bit


Return to Hardware

Who is online

Users browsing this forum: No registered users and 3 guests