Revision 44 logic/trunk/src/logics/conditions.h

View differences:

conditions.h
4 4
#include "../logics/operators.h"
5 5
#include "../init/devicelist.h"
6 6

  
7
#define FUNCTION_UNKNOWN    -1
8
#define FUNCTION_STATIC      0
9
#define FUNCTION_LINEAR      1
10
#define FUNCTION_LOGARITHMIC 2
11
#define FUNCTION_QUADRATIC   3
12

  
7 13
typedef struct condition_list
8 14
{
9 15
    int                     OPERATOR_TYPE;
......
15 21

  
16 22
int   evaluateAdditionalConditions(cond_lst *cl, device *dev);
17 23
//int   evaluateAdditionalConditions(cond_lst *cl);
18
float getNewWeightedMeasurement(float oldval, float newval, float alpha);
24
float getNewWeightedMeasurement(float oldval, float newval, float alpha);
25
int   getPowerPercentage(int a, int b, int o, float *val, int func);
19 26
#endif // CONDITIONS_H_INCLUDED

Also available in: Unified diff