#AAU1 TBM930 Electrical

1 messages · Page 1 of 1 (latest)

glacial hearth
#

Trying to set electrical source (BATT/GPU/OFF) without success. Any advice please ?
1 (>L:XMLVAR_ElecSource, Number) (A:ELECTRICAL MASTER BATTERY, Bool) ! if{ (>K:TOGGLE_MASTER_BATTERY) }

pale basalt
#

I don't have AAU1 but battery events normally have an index to indicate which battery is controlled.

#

Look in Dev Mode, Behaviors to see the code used by the airplane.

glacial hearth
#

@pale basalt complex for me... where's index pls ?

pale basalt
pale basalt
#

I had a look at the pre AAU1 TBM930. The code is a bit different from what is in Hubhop, mainly now including the battery index.

#

So there are three switch positions 0, 1 and 2

#

Position 0 (GPU)
0 (A:ELECTRICAL MASTER BATTERY:1, Bool) != if{ 1 (>K:TOGGLE_MASTER_BATTERY) } 1 (>L:XMLVAR_Battery_GPU_ON)

#

Position 1 (BATT)
1 (A:ELECTRICAL MASTER BATTERY:1, Bool) != if{ 1 (>K:TOGGLE_MASTER_BATTERY) } 0 (>L:XMLVAR_Battery_GPU_ON)

#

Position 2 (OFF)
0 (A:ELECTRICAL MASTER BATTERY:1, Bool) != if{ 1 (>K:TOGGLE_MASTER_BATTERY) } 0 (>L:XMLVAR_Battery_GPU_ON)

#

try these and see if they work.

glacial hearth
#

@pale basalt thx !

glacial hearth
#

@pale basalt security bar working but BATT not selected. It seems XMLVAR_Battery_GPU_ON doesnt exists here

smoky tulip
#

Here's the code for the switch in AAU1:

p0 2 min 0 max (>O:ELECTRICAL_Source_Switch_Position) 
(O:ELECTRICAL_Source_Switch_Position) sp0 l0 (>L:XMLVAR_Elec_Source_Switch_State) 
5 (A:1:BUS CONNECTION ON:1, Bool) l0 0 > != if{ 
    5 1 (>K:2:ELECTRICAL_BUS_TO_BUS_CONNECTION_TOGGLE) 
} 
5 (A:1:BUS CONNECTION ON:14, Bool) l0 2 == != if{ 
    5 14 (>K:2:ELECTRICAL_BUS_TO_BUS_CONNECTION_TOGGLE) 
} 
20 (A:1:BUS CONNECTION ON:13, Bool) l0 2 < != if{ 
    20 13 (>K:2:ELECTRICAL_BUS_TO_BUS_CONNECTION_TOGGLE) 
}
#

looks like the three positions are:

 5 1 (>K:2:ELECTRICAL_BUS_TO_BUS_CONNECTION_TOGGLE) 
5 14 (>K:2:ELECTRICAL_BUS_TO_BUS_CONNECTION_TOGGLE) 
20 13 (>K:2:ELECTRICAL_BUS_TO_BUS_CONNECTION_TOGGLE)
#

you can follow the same pattern as the Jaime posted for the previous version, but the A and K event names are different

glacial hearth
#

thx i try this

glacial hearth
#

@pale basalt not working on last version and @smoky tulip modifications not working in AAU1 :/

smoky tulip
#

The code I posted is what is in the sim so there is a way to get it to work. What did you use? Paste it here

pale basalt
#

Same here for the pre AAU1 version

pale basalt
glacial hearth
#

@pale basalt actually, it doesn't work for me (neither pre-AAU1 nor for AAU1).
Code used : (A:ELECTRICAL MASTER BATTERY:1, Bool) ! if{ 1 (>K:TOGGLE_MASTER_BATTERY) } 0 (>L:XMLVAR_Battery_GPU_ON)

#

(exactly you put in hubhop)

smoky tulip
#

That won't work for AAU1. What code did you try for AAU1 based on what I posted earlier?

pale basalt
#

Candidate for the xml hack

glacial hearth
glacial hearth
smoky tulip
#

My suggestion won't work directly. It has to be modified to work, it was just showing the new event names in AAU1

glacial hearth
#

@pale basalt after erase legacy tbm and reinstall it, your solution is working ! thx

pale basalt
#

keeping everything updated is a lot of work, but it has to be done.

river halo
pale basalt