- Messages
- 75
- Country

Hey everyone I am still working on my APU but right now I am making the electrical system for the aircraft here is what I have so far:
BATTERIES:
I will not be doing any voltage drop calculations because the batteries will be NiCd and they do not experience a voltage drop as they discharge.
LOAD:
I borrowed that from the stopwatch xml in the sdk but I do not know if that is correct for what I need. That is supposed to be a timer which will store how much time the battery has been on and thus calculate the amps remaining in the battery
eventually i would like it to implement the timer with the drain code
any help with the timer would be awesome. For some reason it is the most difficult for me to grasp.
Thanks in advance for the help.
BATTERIES:
Code:
(L:BATT1 ON, bool) 0 !=
(L:BATT1 TOTAL TIME, seconds) 1 <
if{
44(>L:BATT1 AMPS, amps)
24(>L:BATT1 VOLTS, volts)
}
(L:BATT2 ON, bool) 0 !=
(L:BATT2 TOTAL TIME, seconds) 1 <
if{
44(>L:BATT2 AMPS, amps)
24(>L:BATT2 VOLTS, volts)
}
LOAD:
Code:
(L:BATT1 ON, bool) 0 !=
if{
(P:Absolute time, seconds) (L:BATT1 TIME, seconds) -
(>L:BATT1 TOTAL TIME, seconds)
}
els{
(P:Absolute time, seconds) (L:BATT1 TOTAL TIME,seconds) -
(>L:BATT1 TIME,seconds)
}
eventually i would like it to implement the timer with the drain code
Code:
<!--This gives the drain in amp-seconds--!>
(L:ELEC LOAD, amps) 3600 / (>L:BATT1 AMPSECS, amps)
<!--This is the actual battery drain--!>
(L:BATT1 AMPS , amps) (L:BATT1 TIME) (L:BATT1 AMPSECS , amps) * -
(>L:BATT1 AMPS, amps)
any help with the timer would be awesome. For some reason it is the most difficult for me to grasp.
Thanks in advance for the help.
Last edited: