Great, thank you! Would it be okay if I add the function to our TUST library?

Here is another small demo:

Code:
var day= 0;
var hour = 0;
var minute = 0;
	
while(1) {
		
	minute++;
	if (minute == 60) {
		minute = 0;
		hour++;
		if (hour == 25) {
			hour = 0;
			day++;
			if (day == 366) {
				day = 0;
			}
		}
	}
		
set_sun_position(day,hour,minute,0,LOCATION_LATITUDE,LOCATION_TIME_SPRING_EQUINOX);
	wait(1);
}


Last edited by PadMalcom; 04/30/13 06:31.