Results 31 to 37 of 37
Thread: OC assignments
-
03-09-2014, 06:32 PM #31
- Join Date
- Jul 2013
- Posts
- 917
Re: OC assignments
Glenn
You say you are using an "encoder" so not a switch?
A switch is easy to programme for your example, but an encoder, which increments or decrements is not easy at all. To be honest you should use a rotary switch.
David
-
03-09-2014, 07:09 PM #32
- Join Date
- Mar 2011
- Location
- Oklahoma
- Posts
- 86
Re: OC assignments
you know, I have a hard time with the definitions of the different encoders. To Me, a rotory switch, with one common terminal, with multiple out puts that are switch individually, is a rotary switch. that is what I have. Term one is common, then the next 4 are turned on individually. So can I use this switch or do I need a different one?
-
03-10-2014, 05:14 AM #33
- Join Date
- Jul 2013
- Posts
- 917
Re: OC assignments
The component you describe is a rotary switch which is precisely what you need - not an encoder.
Now define each switch position as a variable and if it is "on" then send the corresponding value to the fsuips offset. I am assuming that you have wired up the switch contacts to your "input" board
Nico`s site has examples
David
-
03-11-2014, 07:10 PM #34
- Join Date
- Mar 2011
- Location
- Oklahoma
- Posts
- 86
Re: OC assignments
How do I write the script to reflect the specific value (0,1,2,3,4)? You wrote to "send the corresponding value to the fsuips offset" and I can't figure out how to define the value in the script. I have looked all over nico's site and the help files but can't seem to find anything on that. Yes, I have wiried it up in sequential terminals on my master boards input.
-
03-12-2014, 04:07 AM #35
Re: OC assignments
It goes like this:
Code:Var 1 Link IOCARD_SW Input 23 Type I // off position of rotary switch { IF v1 = 1 { &Starter = 0 } } Var 2 Link IOCARD_SW Input 24 Type I // left position of rotary switch { IF v2 = 1 { &Starter = 1 } } // and so on ... Var 10 name Starter Link FSUIPC_OUT Offset $0892 Length 1 // Starter offset
-
03-12-2014, 08:38 PM #36
- Join Date
- Mar 2011
- Location
- Oklahoma
- Posts
- 86
Re: OC assignments
outstanding! Thanks, I got it, so using "name starter link" ties all those variables together that are named "starter". That I did not know. a very useful command. Thanks so much Nico. Now my GA sim starts, the throttle, mixture, and axis are all working. I can actually fly, sort of...... I am now working on my gauges too. I am using air coil, steam type gauges. I thnk I will use the dc motors card, put a resistor in to drop the voltage, and use that to drive my gauges. What do you think? Glenn
-
03-13-2014, 09:47 AM #37
Re: OC assignments
Congratulations with the steps you made.
About your new question: please start a new thread while you're drifting off topic.
NicoLast edited by kiek; 03-13-2014 at 11:43 AM.
Search Womans from your town for night
HDG preselect function