Moving Average and DIV32


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default Re: Moving Average and DIV32

    Guys,
    This seems to work per your suggestions:
    Code:
      if watts = wattsAvg then
      wattsAvg = watts
      endif
    
      if watts > wattsAvg then
      wattsAvg = wattsAvg + (watts - wattsAvg)/(counter + 1)
      endif
      
      if watts < wattsAvg then
      wattsAvg = wattsAvg + (wattsAvg - watts)/(counter + 1)
      endif

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: Moving Average and DIV32

    Disregard my last post. Upon retest the code shown did not work.

  3. #3


    Did you find this post helpful? Yes | No

    Default Re: Moving Average and DIV32

    Please disregard this whole inquiry. I'm going down the wrong track.

Similar Threads

  1. Replies: 6
    Last Post: - 1st November 2011, 18:53
  2. DT Average
    By ShaneMichael in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 6th October 2011, 23:47
  3. Replies: 1
    Last Post: - 11th June 2011, 08:22
  4. Average Values and digital filter ...
    By jorge in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 24th April 2010, 12:29
  5. Math help - rolling average Wind Direction
    By wjsmarine in forum mel PIC BASIC Pro
    Replies: 18
    Last Post: - 23rd July 2009, 00:08

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts