WCM - Das österreichische Computer Magazin Forenübersicht
 

Zurück   WCM Forum > Rat & Tat > Simulationen > Home Cockpit - Das Forum für die "Bastler"

Home Cockpit - Das Forum für die "Bastler" Cockpitbauer tauschen Pläne, Erfahrungen, Meinungen über den Bau von Homecockpits aus...

Microsoft KARRIERECAMPUS

Antwort
 
Themen-Optionen Ansicht
Alt 17.06.2004, 16:27   #1
Erups
Jr. Member
 
Registriert seit: 10.06.2004
Beiträge: 27


Pfeil Rotary support request

Sorry if this is in english, but i feel better when i have to explain thing if i know what i am writing.
So here it goes:
i'd like to see support for some kind of encoders in FSBUS.
I think that it can be just a software thing, using the current FSKEY card.
You just have to set 2 inputs as an encoder, and then the software would do the rest, decoding the direction.
This would also allow to use any type of encoder (gray, quadrature, whatever) since it may be defined by software.
I think this would be a solution that prevents us from looking for this functionality in other systems...
USing two different hardware systems may be complex...
Thanks
____________________________________
Claudio webmaster Cockpit Italia
Erups ist offline   Mit Zitat antworten
Alt 17.06.2004, 21:34   #2
Erups
Jr. Member
 
Registriert seit: 10.06.2004
Beiträge: 27


Standard

You could have told me it was already there...
Nevermind
____________________________________
Claudio webmaster Cockpit Italia
Erups ist offline   Mit Zitat antworten
Alt 18.06.2004, 16:35   #3
dirkan
Master
 
Registriert seit: 14.02.2002
Alter: 66
Beiträge: 644


Standard

Hi Claudio,

i will make the answer short. The fsbus key controller scans up to ~100 keys in a matrix. This is done by time multiplexing.

The direction of a quadrature encoding rotarie can only be detected in the very short moment, when the edge of one switch changes. This cannot be done in any polling mode. Only interrupt driven code may work, but this allows using only 1,2 or max. 3 rotaries per controller.

never say never, but I don't give this a chance.

kind regards Dirk
dirkan ist offline   Mit Zitat antworten
Alt 18.06.2004, 17:58   #4
Erups
Jr. Member
 
Registriert seit: 10.06.2004
Beiträge: 27


Standard

Zitat:
Original geschrieben von dirkan
[b]i will make the answer short. The fsbus key controller scans up to ~100 keys in a matrix. This is done by time multiplexing.[b]
Yes i know

Zitat:
The direction of a quadrature encoding rotarie can only be detected in the very short moment, when the edge of one switch changes. This cannot be done in any polling mode. Only interrupt driven code may work, but this allows using only 1,2 or max. 3 rotaries per controller.
Dirk....
?
The conditional you used says this thing is not there...
While it is there!?!
Look here
This is a small movie made with my coolpix camera today evening.
It is FSBUS running with an ALPS ec11e type encoder.
Why do you say that?
____________________________________
Claudio webmaster Cockpit Italia
Erups ist offline   Mit Zitat antworten
Alt 18.06.2004, 17:59   #5
Erups
Jr. Member
 
Registriert seit: 10.06.2004
Beiträge: 27


Standard

Zitat:
Original geschrieben von Erups
camera today evening
Meant today morning
____________________________________
Claudio webmaster Cockpit Italia
Erups ist offline   Mit Zitat antworten
Alt 19.06.2004, 16:49   #6
dirkan
Master
 
Registriert seit: 14.02.2002
Alter: 66
Beiträge: 644


Standard

Sorry, the download is ok, but my videoplayer doesn't show it. What format is it. What is your player ?

Dirk
dirkan ist offline   Mit Zitat antworten
Alt 19.06.2004, 18:05   #7
Erups
Jr. Member
 
Registriert seit: 10.06.2004
Beiträge: 27


Standard

free apple quicktime
____________________________________
Claudio webmaster Cockpit Italia
Erups ist offline   Mit Zitat antworten
Alt 20.06.2004, 10:12   #8
tuomas
Jr. Member
 
Registriert seit: 01.04.2003
Beiträge: 87


Standard

Hi Dirk!

Basically it seems like the "Knitter" encoding happens to work for some weird reason for me, and for Claudio, the "ALPS" mode seems to do it.

What seems to happen is that the encoder sends +-++-++-++... which, when you sum them up, makes "+++" - just a lot of back-and-forth moving.

The Knitter mode with a phase-shifted rotary seems to work a lot better here - good enough that I plan on using them (no jerking at all), I am very surprised. Maybe it is some strange timing that just happens to go right here, but I wired a panasonic "phase shifted" rotary and configured it as "knitter" and hooked it to the QNH knob - and it works very well.

I am kind of surprised that it accidentally works..

Maybe the thing could be made to work by just filtering out the certain "++-++-++-" -pattern? Havent got a scope so I dont know exactly what happens, but it is pretty funny that it works.

I understand the issues for decoding them, so I trust what you say, I dont know much about this stuff anyway - and there's the "REDEC" circuit anyway which is told to work.

//Tuomas
tuomas ist offline   Mit Zitat antworten
Alt 20.06.2004, 12:29   #9
Erups
Jr. Member
 
Registriert seit: 10.06.2004
Beiträge: 27


Standard

Yes, what Toumas sais is true.
I discovered it accidentally by looking at a rotary object in fsbus.
When i saw "alps" i thought it was for phase-shifted encoders.
And tried and it worked.
Not very good, but worked.
What Toumas says about ++-++-++- is half true, because when you look at FSBUS you effectively see the minus reported but it kind of doesn't get sent to ms. I do not have a back and forth on this, although it is reported by the visual indicator in the fsbus rotary object.
Now if you set the type to knitter, it goes even better: only plus and minus.
Just straight one.
Perfect.
I know the problem about the matrix scanninc versus interrupt, but this thing already works... that's the point.
I am not loosing any number.
IF i have a "refresh rate" for the value, too small (as to say fast), the value jumps a little because fsbus reads when it is still updateing.
So setting the scan delay to big numbers (like 8 seconds) gets rid of this problem, and everything is perfectly smooth.
If you have an encoder give it a try.
And please do not touch anything in te future!
I do not want this "accidental" feature to be removed
____________________________________
Claudio webmaster Cockpit Italia
Erups ist offline   Mit Zitat antworten
Alt 20.06.2004, 12:29   #10
Erups
Jr. Member
 
Registriert seit: 10.06.2004
Beiträge: 27


Standard

The forum doesn't let me edit my messages, so sorry Tuomas i wrote your name wrong every time in the message above :P
____________________________________
Claudio webmaster Cockpit Italia
Erups ist offline   Mit Zitat antworten
Antwort


Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.

Gehe zu


Alle Zeitangaben in WEZ +2. Es ist jetzt 16:36 Uhr.


Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Forum SEO by Zoints
© 2009 FSL Verlag