Umm , I think it is not a serial monitor problem, It is the code itself.
To simplify the code I modified it to show only one calculation result, and now I get only zero and serial monitor displays
Julian Day: 0.00
Julian Day: 0.00
Julian Day: 0.00
And I can not solve this problem till now. Please help ![]()
#include <spa.h>
spa_data spa;
int result;
float min, sec;
void setup()
{
Serial.begin(9600);
}
void loop()
{
spa.year = 2003;
spa.month = 10;
spa.day = 17;
spa.hour = 12;
spa.minute = 30;
spa.second = 30;
spa.timezone = -7.0;
spa.delta_t = 67;
spa.longitude = -105.1786;
spa.latitude = 39.742476;
spa.elevation = 1830.14;
spa.pressure = 820;
spa.temperature = 11;
spa.slope = 30;
spa.azm_rotation = -10;
spa.atmos_refract = 0.5667;
spa.function = SPA_ALL;
Serial.print ("Julian Day: ");
Serial.println(spa.jd);
delay(10000);
}