Question: Trying to make a C program not C++ with using a Sunrise and Sunset caluctations to make the program to tell the blinds when they
Trying to make a C program not C++ with using a Sunrise and Sunset caluctations to make the program to tell the blinds when they should move by the senor setup. Are the calculations the formulas stated below correct in the code? Or am I completely wrong with this code? Having issue with my complier.
| #include #include |
int TIMEZONE = 1; double LONGITUDE = t=avg+0.5*cos((doy+8)/58.09); double LATITUDE = t=avg+0.5*cos((doy+8)/58.09); myTime; int main (void) { float (9600); myTime TimeZone(TIMEZONE * 60); myTime Position(LATITUDE, LONGITUDE); } void loop() { char day[] = {0, 0, 0,30 , 9, 2018}; myTIme.SunRise(day); print("Sunrise: "); print((int) day[tl_hour]); print(":"); println((int) day[tl_minute]); myTime.SunSet(day); print("Sunset: "); print((int) day[tl_hour]); print(":"); println((int) day[tl_minute]); delay(5000);
return 0; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
