Source code for algorithm in Intelligent Solar Reflector project

Algorithm.h

Committer:
khaiminhvn
Date:
2021-02-09
Revision:
0:cc55071995e8

File content as of revision 0:cc55071995e8:

#ifndef ALGORITHM_H
#define ALGORITHM_H

//INCLUDES
#include "mbed.h"
#include "math.h"
#include "Defs_Sett.h"

#define PI 3.14159265

class Algorithm
{
    public:
    static float calcAngle(int n, float th); //Calculate angle of the reflector base on sun's position
    
    private:
    static float R1Angle(float th, float a);
    static float R2Angle(float th, float a);
};
#endif