Source code for algorithm in Intelligent Solar Reflector project

Revision:
0:cc55071995e8
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Algorithm.h	Tue Feb 09 23:53:33 2021 +0000
@@ -0,0 +1,20 @@
+#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
\ No newline at end of file