#AAU1 TBM930 Electrical
1 messages · Page 1 of 1 (latest)
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.
There are tutorials on how to dig the event code in Dev Mode.
@smoky tulip can you please help? I don't have AAU1, so I can't look.
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.
@pale basalt thx !
@pale basalt security bar working but BATT not selected. It seems XMLVAR_Battery_GPU_ON doesnt exists here
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
thx i try this
@pale basalt not working on last version and @smoky tulip modifications not working in AAU1 :/
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
Same here for the pre AAU1 version
you mean the code I posted does not work on AAU1 version or pre-AAU1?
@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)
That won't work for AAU1. What code did you try for AAU1 based on what I posted earlier?
I think the code works and the Sim battery is turned on and off, but the switch in the virtual panel doesn't move because it is controlled by an O: var.
Candidate for the xml hack
it tried without success your suggestion in AAU1 : i think i didn't correctly its complex for me
i dont think because g3000 dont turn on
My suggestion won't work directly. It has to be modified to work, it was just showing the new event names in AAU1
@pale basalt after erase legacy tbm and reinstall it, your solution is working ! thx
oh, so it seems you must have had an old version still installed.
keeping everything updated is a lot of work, but it has to be done.
Hello! Sorry for the newbie question!
I'm still starting a friendship with the MF and there's a lot I don't understand!
Could you explain to me how you managed to get the Source Switch to work?
I tried to change the variables, as described above, but nothing works for me!
Hello and welcome, can you please open a new thread for your support question? Include some more detail about what you did. Thanks.