Configuring my "Honeycomb-Aeronautical-Bravo-Throttle-Quadrant" I wrote a configuration file containing the following:
- Code: Select all
<axis n="0">
<desc>Throttle</desc>
<binding>
<command>nasal</command>
<script>
controls.throttleAxis(1);
</script>
</binding>
</axis>
This code works in principle but the direction of the Axis has to be turned and the "1" as an argument does not help. Therefore I tried to find the definition of the function by inserting a "print();" statement.
A "print();" command right after the function call in the configuration file works fine. After that I run a grep command
/usr/share/games/flightgear> grep -r -i "controls.throttle"
and receive the information that the definition can be found in
/usr/share/flightgear/Aircraft/c172p/Nasal/engine.nas.
Any attempt to add a "pritn()" statement in this file does not give any result.
Does anybody know where I can find the definition code of "controls.throttleAxis()" to be able to adjust the code for my needs?
I am running:
FlightGear version: 2020.3.6
SimGear version: 2020.3.6
OSG version: 3.6.5
PLIB version: 185
Aircraft: C172p
Ubuntu 22.04.1 LTS
Thanks for help
best regards
Olaf