Talking about rolling average, I use a AIN block with filter option.
That just works a gem.
Anyone ever thought about 0-360deg wind vane damping?
See the problem around North? 1,360,1,360..... would average 180 wouldn't it?
Here is what I did.
In a CALC block split out the SIN and COS and output it to say RO02/03
Those two outputs each go to an AIN block with filter option ON and filtertime say 1.
The output of those AIN blocks is then fed back in the CALC block to be ASINed and
ACOSed and with a bit of smarts put back together to form 0-360deg.
There you have it. A very well stabilised wind vane signal which can now be used to
drive an directional indicator (FoxView) without driving the operator mad.
Cheers,
Frits Schouten.
BHP-NZSteel.
EOM
NOTICE - This message contains information intended only for the use of the addressee
named above. It may also be confidential and/or privileged. If you are not the
intended recipient of this message you are hereby notified that you must not
disseminate, copy or take any action in reliance on it. If you have received this
message in error please notify [EMAIL PROTECTED]
-----------------------------------------------------------------------
This list is neither sponsored nor endorsed by the Foxboro Company. All
postings from this list are the work of list subscribers and no warranty
is made or implied as to the accuracy of any information disseminated
through this medium. By subscribing to this list you agree to hold the
list sponsor(s) blameless for any and all mishaps which might occur due to
your application of information received from this mailing list.
To be removed from this list, send mail to
[EMAIL PROTECTED]
with "unsubscribe foxboro" in the Subject. Or, send any mail to
[EMAIL PROTECTED]