Previous Thread
Next Thread
Print Thread
Rate This Thread
Hop To
#3955869 - 05/20/14 12:29 PM is this possible? (Profile programming)  
Joined: May 2010
Posts: 197
The_Winger Offline
Member
The_Winger  Offline
Member

Joined: May 2010
Posts: 197
Hi guys,

I am flying IL2: Battle of stalingrad mostly. There the BF 109 F-4 Engine is modeled so that when you run the engine for a longer Time (above a minute) at 1.42 ata you will pretty certain ruin the engine.
What i was thinking is is it is somehow possible to programm a TARGET profile that activates puts the throttle to 100% when pulled over the frontdetent (at about 80% throttle or so) and then, after a minute automatically puts it back to 80%. This way one could be certain the engine doenst brake when using "notleistung" and simply forgetting to put the throttle back after the minute.

Inline advert (2nd and 3rd post)

#3959455 - 05/29/14 12:14 PM Re: is this possible? (Profile programming) [Re: The_Winger]  
Joined: Oct 2010
Posts: 83
Nicu Offline
Junior Member
Nicu  Offline
Junior Member

Joined: Oct 2010
Posts: 83
Code:
define PERCENT  80
define TIME	1000 // ms

int main()
{
    if(Init(&EventHandle)) return 1;     
    MapAxis(&Throttle, THR_RIGHT, DX_X_AXIS);
    KeyAxis(&Throttle, THR_RIGHT, 0, AXMAP2(LIST(0, PERCENT, 100), 
					EXEC("SlowDown=0; AxisProc(0);"), 
					EXEC("SlowDown=1; DeferCall(TIME, &AxisProc, 0);")));
}

int SlowDown;
int AxisProc(int x)
{ 
    if(SlowDown) DXAxis(DX_X_AXIS, AMAX - 2*AMAX*PERCENT/100); 
    LockDXAxis(DX_X_AXIS, SlowDown);
}

Last edited by Nicu; 05/29/14 12:22 PM.

Moderated by  RacerGT 

Quick Search
Recent Articles
Support SimHQ

If you shop on Amazon use this Amazon link to support SimHQ
.
Social


Recent Topics
Whitey Herzog was 92
by F4UDash4. 04/16/24 04:41 PM
Anyone can tell me what this is?
by NoFlyBoy. 04/16/24 04:10 PM
10 Years ago MV Sewol
by wormfood. 04/15/24 08:25 PM
Pride Of Jenni race win
by NoFlyBoy. 04/15/24 12:22 AM
It's Friday: grown up humor for the weekend.
by NoFlyBoy. 04/12/24 01:41 PM
OJ Simpson Dead at 76
by bones. 04/11/24 03:02 PM
They wokefied tomb raider !!
by Blade_RJ. 04/10/24 03:09 PM
Good F-35 Podcast
by RossUK. 04/08/24 09:02 AM
Gleda Estes
by Tarnsman. 04/06/24 06:22 PM
Copyright 1997-2016, SimHQ Inc. All Rights Reserved.

Powered by UBB.threads™ PHP Forum Software 7.6.0