frederic blanc / MovingAverage_ok

Dependents:   trms_helloworld

Fork of MoyenneMobile by Alexandre Proulx

MovingAverage.cpp

Committer:
fblanc
Date:
2014-07-07
Revision:
1:b310d132db09
Parent:
0:226202c7ea37
Child:
2:da07a13d617f

File content as of revision 1:b310d132db09:

/*****************************************************/
/*           _                              _        */
/*     /\   | |                            (_)       */
/*    /  \  | | ___  __ _ _ __ _____      ___ _ __   */
/*   / /\ \ | |/ _ \/ _` | '__/ _ \ \ /\ / / | '_ \  */
/*  / ____ \| |  __/ (_| | | | (_) \ V  V /| | | | | */
/* /_/    \_\_|\___|\__, |_|  \___/ \_/\_/ |_|_| |_| */
/*                   __/ |                           */
/*                  |___/                            */
/*                          Created on April 2013    */
/*****************************************************/


/*

for(int i = 0; i < FILTRE_RANGE; i++) {
        FiltreMobile[i] = cmd[0];
    }
    
    Temp = Temp - FiltreMobile[Temp_next]/FILTRE_RANGE + cmd[0]/FILTRE_RANGE;
    FiltreMobile[Temp_next++] = cmd[0];

    Temp_next = Temp_next&0x07;
}*/
#include "MovingAverage.h"