-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial Commit added in PCL checks for starter to engage HAVE NOT TESTED, CANNOT TEST LOCAL DUE TO SCONS ISSUE * Logic Error fixed, tested local and ready for merge back to main * Adjusted ESIS logic * Added in standby insturments battery * Adjusted variables so they affect globaly
- Loading branch information
1 parent
d424680
commit 35e8544
Showing
6 changed files
with
54 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* ---------------------------------------------------------------------------- | ||
Function: vtx_uh60_sfmplus_fnc_standbyInst | ||
Description: | ||
Simulates the Standby Insturment's 30 minuet battery | ||
Parameters: | ||
_heli - The helicopter to get information from [Unit]. | ||
_deltaTime - delta time passed from core | ||
Returns: | ||
... | ||
Examples: | ||
... | ||
Author: | ||
Donov C. | ||
---------------------------------------------------------------------------- */ | ||
|
||
params ["_heli", "_deltaTime"]; | ||
|
||
private _ACBusState = _vehicle getVariable "vtx_uh60_acft_ACBusState"; | ||
private _stbyInstBatt = _vehicle getVariable "vtx_uh60_acft_stbyInstBatt"; //1800 seconds | ||
private _stbyInstSwitchState = _vehicle getVariable "vtx_uh60_acft_stbyInstSwitchState"; | ||
|
||
if (_ACBusState != "ON" && _stbyInstSwitchState == "ON") then { | ||
if (_stbyInstBatt >= 0) then { | ||
_stbyInstBatt = _stbyInstBatt - _deltaTime; | ||
_vehicle setVariable ["vtx_uh60_acft_stbyInstBatt", _stbyInstBatt, true]; | ||
}; | ||
}; | ||
if (_ACBusState == "ON") then { | ||
if (_stbyInstBatt < 1800) then { | ||
_stbyInstBatt = _stbyInstBatt + _deltaTime; | ||
_vehicle setVariable ["vtx_uh60_acft_stbyInstBatt", _stbyInstBatt, true]; | ||
}; | ||
}; | ||
|
||
//systemChat format ["_stbyInstBatt: %1", _stbyInstBatt]; |