summaryrefslogtreecommitdiff
path: root/software/include/sun.h
diff options
context:
space:
mode:
Diffstat (limited to 'software/include/sun.h')
-rw-r--r--software/include/sun.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/software/include/sun.h b/software/include/sun.h
new file mode 100644
index 0000000..33f4eb7
--- /dev/null
+++ b/software/include/sun.h
@@ -0,0 +1,18 @@
+#include <stdio.h>
+#include <string.h>
+#include <stdbool.h>
+#include <math.h>
+#include <sys/time.h>
+#include <time.h>
+
+#define LOCAL_OFFSET -4
+
+#define LONGITUDE -79.3832
+#define LATITUDE 43.6532
+
+#define _USE_MATH_DEFINES
+
+double deg_to_rad(double angle);
+double rad_to_deg(double angle);
+
+double sun_calculation(struct tm curr_time, double longitude, double latitude);