I would like to assign the VS / ALT mode change function to the button knobster:
The responsible command is:
sim / cockpit2 / autopilot / alt_vvi_is_showing_vvi
How do I make one press of the Knobster button activate VS and pressing the button again activate ALT ???
Will this modes file work correctly ???
"name": "AP_ALT_VS",
"minor_cw_cmd": "sim / autopilot / altitude_up",
"minor_ccw_cmd": "sim / autopilot / altitude_down",
"minor_acceleration": 10,
"major_cw_cmd": "sim / autopilot / vertical_speed_up",
"major_ccw_cmd": "sim / autopilot / vertical_speed_down",
"major_acceleration": 10,
"button_released_cmd": "sim / cockpit2 / autopilot / alt_vvi_is_showing_vvi",
"order": 703000
Knobster button command in knobXP plugin
- Keith Baxter
- Posts: 4674
- Joined: Wed Dec 20, 2017 11:00 am
- Location: Botswana
Re: Knobster button command in knobXP plugin
Hi,
I would create a button as a counter something like this.
Then in your dial use <vs_alt_mode> as a filter.
Keith
I would create a button as a counter something like this.
Code: Select all
--Create a button as a counter
vs_alt_mode=0
function callback_pressed()
vs_alt_mode=vs_alt_mode+1
if vs_alt_mode >1 then vs_alt_mode =0 end
print("Mode code is "..vs_alt_mode)
end
button_id = button_add("a.png", "b.png", 100,100,200,200,callback_pressed)
Keith
AMD RYZEN 9 5950X CPU, Corsair H80I cooler, ASUS TUF GAMING B550-PLUS AMD Ryzen Mother Board, 32Gb ram Corsair Vengeance 3000Mh, MSI GTX960 4G graphics card
Re: Knobster button command in knobXP plugin
Thank You very, very, very much.
I hope to be able to deal with it as soon as the purchased knobster arrives.
PS. Maybe in the next update, you will include this mod. It is found in many aircraft.
I hope to be able to deal with it as soon as the purchased knobster arrives.
PS. Maybe in the next update, you will include this mod. It is found in many aircraft.
Re: Knobster button command in knobXP plugin
Your script is for Air Manager Keith, there's no scripting in KnobXP. There's no second press option in KnobXP. You'll have to use two separate modes.
Re: Knobster button command in knobXP plugin
Hi,
To be clear, the script Keith posted cannot be used with the Knobster.
Instead you have to connect your own button/rotary encoder to an Arduino.
Corjan
To be clear, the script Keith posted cannot be used with the Knobster.
Instead you have to connect your own button/rotary encoder to an Arduino.
Corjan
- Keith Baxter
- Posts: 4674
- Joined: Wed Dec 20, 2017 11:00 am
- Location: Botswana
Re: Knobster button command in knobXP plugin
Ok my Bad I did not take in the "knobXP" bit
Now I need some education as some peeps are wanting me to do a entegra overlay bezel for use with Knobster.
A button is not available in Knobster?
And why is AM code inconsistent across features? Should they not be the same?
Keith
AMD RYZEN 9 5950X CPU, Corsair H80I cooler, ASUS TUF GAMING B550-PLUS AMD Ryzen Mother Board, 32Gb ram Corsair Vengeance 3000Mh, MSI GTX960 4G graphics card
- Keith Baxter
- Posts: 4674
- Joined: Wed Dec 20, 2017 11:00 am
- Location: Botswana
Re: Knobster button command in knobXP plugin
Hi,
I am Sorry to mislead. Not my intention. I Speed read and did not take into account the kbobXP.
Keith
AMD RYZEN 9 5950X CPU, Corsair H80I cooler, ASUS TUF GAMING B550-PLUS AMD Ryzen Mother Board, 32Gb ram Corsair Vengeance 3000Mh, MSI GTX960 4G graphics card
Re: Knobster button command in knobXP plugin
No problem . Willingness is what counts and I thank you very much for that
Then I have another stupid question.
If I could create a simple lua script with my own command that would switch ALT to VS and vice versa, with a single key, is it possible to assign this command to a Knobster button in knobXP ???
Then I have another stupid question.
If I could create a simple lua script with my own command that would switch ALT to VS and vice versa, with a single key, is it possible to assign this command to a Knobster button in knobXP ???
- Keith Baxter
- Posts: 4674
- Joined: Wed Dec 20, 2017 11:00 am
- Location: Botswana
Re: Knobster button command in knobXP plugin
Hi,Bulva wrote: ↑Tue Mar 30, 2021 4:55 pm No problem . Willingness is what counts and I thank you very much for that
Then I have another stupid question.
If I could create a simple lua script with my own command that would switch ALT to VS and vice versa, with a single key, is it possible to assign this command to a Knobster button in knobXP ???
That one is for @Corjan or @Ralph
It is possible via Air Manager not using knobXP plugin.
That is the code I posted.
Keith
AMD RYZEN 9 5950X CPU, Corsair H80I cooler, ASUS TUF GAMING B550-PLUS AMD Ryzen Mother Board, 32Gb ram Corsair Vengeance 3000Mh, MSI GTX960 4G graphics card