Jump to content
Sign in to follow this  
N1125Y

Aviation BUS 2 Button assinment ?

Recommended Posts

I can find keyboard or button assignment for Aviation BUS 1, but can't find anything for BUS 2 to turn my G430 on, so mouse clicking is my only option for now   

 

Any idea ???

 

Cheers

 

Yair

  • Like 1

Share this post


Link to post
Share on other sites

Is it called alternator 2 or generator 2?


| FAA ZMP |
| PPL ASEL |
| Windows 11 | MSI Z690 Tomahawk | 12700K 4.7GHz | MSI RTX 4080 | 32GB 5600 MHz DDR5 | 500GB Samsung 860 Evo SSD | 2x 2TB Samsung 970 Evo M.2 | EVGA 850W Gold | Corsair 5000X | HP G2 (VR) / LG 27" 1440p |

 

 

Share this post


Link to post
Share on other sites

... LR doesn't provide Alternator 2 at all , & Generator 2 is no good either, suppose to be Avionic  BUS 1 & Avionic Bus 2, the Saiteks Switch Panel furnished with Avionic Master which is triggering the G530

 

Reg.   

Share this post


Link to post
Share on other sites
On 1/31/2018 at 8:38 PM, N1125Y said:

I can find keyboard or button assignment for Aviation BUS 1, but can't find anything for BUS 2 to turn my G430 on, so mouse clicking is my only option for now   

 

Any idea ???

 

Cheers

 

Yair

sorry. mean AVIONIC BUS 2 ...:-)

Share this post


Link to post
Share on other sites

You need to change the DataRef "set cross_tie": sim/cockpit2/electrical/cross_tie

Ich have written a Lua script for the Cessna 172 REP which switches the Bus2 automatically with Bus1 and also addresses the fuel pump DataRef which REP uses:

if PLANE_ICAO == "C172" then
  set("sim/cockpit/gyros/dg_drift_vac_deg",0)
  DataRef("status_avionics", "sim/cockpit2/switches/avionics_power_on", "readonly")
  DataRef("status_fuelpump", "sim/cockpit2/engine/actuators/fuel_pump_on", "readonly",0)
  DataRef("REP_fuelpump", "simcoders/rep/cockpit2/engine/actuators/fuel_pump_0", "writable")
  DataRef("REP_avionics", "simcoders/rep/cockpit2/switches/avionics_power_on", "writable")
  DataRef("set_crosstie", "sim/cockpit2/electrical/cross_tie", "writable")
  
  function DoSwitches()
    if status_avionics == 1 then
      REP_avionics = 1
      set_crosstie = 1
    else
      REP_avionics = 0
      set_crosstie = 0
    end
    
    if status_fuelpump == 1 then
      REP_fuelpump = 1
    else
      REP_fuelpump = 0
    end
    
  end
  
  do_every_frame("DoSwitches()")
  

end

 

  • Like 1

Share this post


Link to post
Share on other sites
On 5.2.2018 at 9:02 AM, N1125Y said:

... LR doesn't provide Alternator 2 at all , & Generator 2 is no good either, suppose to be Avionic  BUS 1 & Avionic Bus 2, the Saiteks Switch Panel furnished with Avionic Master which is triggering the G530

 

Reg.   

That is actually not true....X-Plane provides 8 (!) Generators, The corresponding DataRef (sim/cockpit2/electrical/generator_on) is an array of 8 integer values

Share this post


Link to post
Share on other sites
On 2/9/2018 at 10:35 PM, allergiecheck said:

You need to change the DataRef "set cross_tie": sim/cockpit2/electrical/cross_tie

Ich have written a Lua script for the Cessna 172 REP which switches the Bus2 automatically with Bus1 and also addresses the fuel pump DataRef which REP uses:


if PLANE_ICAO == "C172" then
  set("sim/cockpit/gyros/dg_drift_vac_deg",0)
  DataRef("status_avionics", "sim/cockpit2/switches/avionics_power_on", "readonly")
  DataRef("status_fuelpump", "sim/cockpit2/engine/actuators/fuel_pump_on", "readonly",0)
  DataRef("REP_fuelpump", "simcoders/rep/cockpit2/engine/actuators/fuel_pump_0", "writable")
  DataRef("REP_avionics", "simcoders/rep/cockpit2/switches/avionics_power_on", "writable")
  DataRef("set_crosstie", "sim/cockpit2/electrical/cross_tie", "writable")
  
  function DoSwitches()
    if status_avionics == 1 then
      REP_avionics = 1
      set_crosstie = 1
    else
      REP_avionics = 0
      set_crosstie = 0
    end
    
    if status_fuelpump == 1 then
      REP_fuelpump = 1
    else
      REP_fuelpump = 0
    end
    
  end
  
  do_every_frame("DoSwitches()")
  

end

 

..tnx... but I have no clue how to deal with DataRef or any sort of programming ..... however, I found out that Cross-Tie on/off or toggle will do the 'Trick"    

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...