Previous Thread
Next Thread
Print Thread
Rate This Thread
Hop To
#4546939 - 12/03/20 10:34 AM AXMAP1 functionality problem  
Joined: May 2001
Posts: 468
Joao Muas Offline
Member
Joao Muas  Offline
Member

Joined: May 2001
Posts: 468
Portugal
Hi all.

I'm trying to do something very simple, that goes like this...

I have this axis TANT (the antenna elevation axis from TWCS Throttle) I want to use in digital mode and do this...

Starting from one end (as a slider) I want it to produce a key hold while moving in one direction; then if stopped, I want that key on hold to be released.
If moved to the other direction I want it to just pulse another key, but this part is very straight forward.

My problem is how to get the first key to be released when the axis stops moving.

For example:
Code
Keyaxis(&TWCSThrottle, TANT, 0, AXMAP1( LIST(0,90,100), 'a', PULSE+'b' ));

No problem with the PULSE+'b', but I need the "a" to be released every time the TANT movement stops, (without returning to any center position because I don't want one).
As per normal behavior of AXMAP1, the 'a' will be held down even when the axis movement stops, and this is what i need a solution for.

Thanks.

Inline advert (2nd and 3rd post)

#4546999 - 12/03/20 10:23 PM Re: AXMAP1 functionality problem [Re: Joao Muas]  
Joined: May 2001
Posts: 468
Joao Muas Offline
Member
Joao Muas  Offline
Member

Joined: May 2001
Posts: 468
Portugal
Ok, this can be done like this...
Code
Keyaxis(&TWCSThrottle, TANT, 0, AXMAP1( 500, PULSE+'a', PULSE+'b' ));
It does what it should smoothly as if a key is held down. Simple.


Moderated by  RacerGT 

Quick Search
Recent Articles
Support SimHQ

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


Recent Topics
Headphones
by RossUK. 04/24/24 03:48 PM
Skymaster down.
by Mr_Blastman. 04/24/24 03:28 PM
The Old Breed and the Costs of War
by wormfood. 04/24/24 01:39 PM
Actors portraying British Prime Ministers
by Tarnsman. 04/24/24 01:11 AM
Roy Cross is 100 Years Old
by F4UDash4. 04/23/24 11:22 AM
Actors portraying US Presidents
by PanzerMeyer. 04/19/24 12:19 PM
Dickey Betts was 80
by Rick_Rawlings. 04/19/24 01:11 AM
Exodus
by RedOneAlpha. 04/18/24 05:46 PM
Copyright 1997-2016, SimHQ Inc. All Rights Reserved.

Powered by UBB.threads™ PHP Forum Software 7.6.0