FF A320 APU Start

Support for Arduino in combination with Air Manager and Air Player

Moderators: russ, Ralph

Post Reply
Message
Author
kth64
Posts: 7
Joined: Sat Feb 12, 2022 5:41 pm

FF A320 APU Start

#1 Post by kth64 »

Hi folks,

i`m trying to turn on the APU on a A320 via hardware buttons,

I can turn on the APS MAster button.

Code: Select all

function apuon_pressed()

  print("Master APU on")

  xpl_command("a320/Overhead/APU_Master_button")
end


hw_button_add("ARDUINO_MEGA2560_A_D3", apuon_pressed)
The Datarefs and commands where allready there ( dataref a320/Overhead/APU_Master; Command a320/Overhead/APU_Master_button).

Now I want to do the same with den APU Start.
The datarefs and command are similar to the Master ( dataref a320/Overhead/APU_Start; Command a320/Overhead/APU_Start_button).

My code ist therefor is

Code: Select all

function apustart_pressed()

  print("Start APU")

  xpl_command("a320/Overhead/APU_Start_button")
end


hw_button_add("ARDUINO_MEGA2560_A_D4", apustart_pressed)
Surprisingly this doesn`t work
I dont know what the problem is, so if there is someone who can help me it would be great.

Thanks

Karl
Thanks

Karl

Member of https://lh-virtual-group.com/
XPlane11

User avatar
Ralph
Posts: 7924
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: FF A320 APU Start

#2 Post by Ralph »

It might be that you have to send a begin and end command. More information here: https://siminnovations.com/wiki/index.p ... pl_command

The begin would be in the pressed callback, the end in the released callback.

kth64
Posts: 7
Joined: Sat Feb 12, 2022 5:41 pm

Re: FF A320 APU Start

#3 Post by kth64 »

Hi Ralph,

could be, but why does it work with the APU Master?

ist the same function.
Thanks

Karl

Member of https://lh-virtual-group.com/
XPlane11

kth64
Posts: 7
Joined: Sat Feb 12, 2022 5:41 pm

Re: FF A320 APU Start

#4 Post by kth64 »

No it`s not,

You where right, APU Start is activated by unpressing the button.


Thanks for the Help.


Karl
Thanks

Karl

Member of https://lh-virtual-group.com/
XPlane11

Post Reply