Hello @ all
I have a Problem with the Cessna C172P. I assign the Parking Brakes to a Joystick Button in the GUI.
But if i press the Button on the plane nothing happens. If i do the same with the Cessna C182S everything works well. Shift-b works fine on both planes.
If i use the C172P and look in "Internal Properties/controls/gear" the brake-parking value is shortly switch from 1 to 0 and switched imediatly back.
If i change the state with shift-b and look in the properties and push the button again, the value is switching vom 0 to 1 an back. It don't toggle.
Can @wlbragg comment on this?
I'm using a Thrustmaster contol system and i think it is using default configurations. Let me verify the brake system and controller mapping and report back.
Last edit: Wayne Bragg 2022-04-19
I'm using a Microsoft Sidewinder FFB with adapt-ffb-joy. Everything works
fine except the Parking Brakes on a JS Button. I use this combo also for
ELITE Dangerous. There all buttons work perfectly.
The problem occurs only with the C172P. With C182S the lever change from
one position to the other and the value change also, if I look into
"Internal Properties/controls/gear".
A new installation don't solve the problem.
Thanks for your help
Am Di., 19. Apr. 2022 um 18:47 Uhr schrieb Wayne Bragg wlbragg@users.sourceforge.net:
Related
Tickets: #2727
What js controlljs are you using?
Today i got my new 'throttle '. I configured a switch 'ON' to be 'Parking Brakes'. Parking brakes do not response on C172P. I tried to C182S and Parking brakes toggle the moment i switch back to 'OFF'. The properties on both planes seem identical. A 'nasal', a module 'js2' and and same scripts.
So, i confirm the problem
but i cannot understand the question about controlljs. An other switch i configured as 'AutoPilot disconnect'. Neither that is working nor to C172P not to C182S'.
I use
/sim/version/flightgear: 2020.3.12
/sim/version/simgear: 2020.3.12
Last edit: Jimis Hol 2022-04-22
I managed to configure Thrustmaster TCA Officer Pack Airbus Edition. Unfortunately I flight only Cessna C172P so, the configuration works perfectly only on that plane. On C182s works almost identical but i miss some animation upon switching magnetos. Planes seems to use different properties from time to time. When and if i flight an Airbus, i will need a new configuration. And when a system update downloads a newer than 2020.3.12 release, my current configuration might not work also.
Changes to brake-parking value definitely do not work and C172P does not respond to them.
I used <script type="string">controls.applyParkingBrake(1)</script> instead.
On the throttle device, I mapped magnetos to switches and engine start (that in contrary for just pressing the 's' key onn keyboard it does not start the engine unless magnetos are both on). Auto pilot engagement and parking brakes are on switches too. On the throttle device are mapped also an auto trim for takeoff button and flaps.
On joystick are mapped an up-down of pilot sit, zoom, left, right and both brakes, trims, pan view and a view reset that also set Field of View at 42 (because i enjoy it more) instead of the default of about 75. On joystick, because i have thrust in different device, i use throttle for mixture and the end of it as a use of the prime.
I attach the configuration files that was created in .fgfs/Input/Joysticks folder.
Last edit: Jimis Hol 2022-04-24
Hello Jimis Hol
That's it. Now it works for me also. But I think it's important to tell where people have to change this. I think a beginner use the GUI config and run into this problem(like me). In my case I use Windows 10 with a Microsoft Sidewinder FFB with adapt-ffb-joy. This is a special converter to use this Joystick with usb ports.
Where is the file located ?
The file to change will be located in
%APPDATA%\flightgear.org\Input\Joysticks\
mine is named
LUFA-Joystick-wFFB.xml
because i use adapt-ffb-joyIf you configure the joystick in the GUI your xml file looks like this...
nasal
nasal
~~~
<button n="6">
<desc type="string">Parking brakes</desc>
<repeatable type="string">false</repeatable>
<binding>
<script type="string">controls.parkingBrakeToggle(0);</script>
<=you must change this
</binding>
<mod-up>
<binding>
<script type="string">controls.parkingBrakeToggle(1);</script>
<=and this change also
</binding>
</mod-up>
</button>
<button n="6">
nasal
nasal
<desc type="string">Parking brakes</desc>
<repeatable type="string">false</repeatable>
<binding>
<script type="string">controls.applyParkingBrake(1);</script>
<=thats the new line
</binding>
<mod-up>
<binding>
<script type="string">controls.applyParkingBrake(0);</script> <=
and the other line
</binding>
</mod-up>
~~~
It is noticeable that the two lines are apparently reversed. After I change this, the button is shown as 'custom' in the GUI config and you can't see it's function. I think the problem is in the GUI, that makes this wrong entry in the config file. Can a dev correct it?
Thanks everyone for your help.
PS: a last question: How can I set the S-button(start engine)from the
</button>keyboard to a button on the stick?
Last edit: Richard Harrison 2023-05-31