添加反射率定标
This commit is contained in:
@ -0,0 +1,35 @@
|
||||
//======================================================================================================================
|
||||
// SolarCalculator Library for Arduino example sketch: EquationOfTime.ino
|
||||
//
|
||||
// Plot the equation of time for a given year.
|
||||
//
|
||||
// Tested with Arduino IDE 1.8.19 and Arduino Uno
|
||||
//======================================================================================================================
|
||||
|
||||
#include <SolarCalculator.h>
|
||||
|
||||
int year = 2022;
|
||||
|
||||
void setup()
|
||||
{
|
||||
Serial.begin(9600);
|
||||
|
||||
// Starting day (January 1)
|
||||
JulianDay day(year, 1, 1);
|
||||
|
||||
for (int i = 0; i < 365; i++)
|
||||
{
|
||||
double eq;
|
||||
calcEquationOfTime(day, eq);
|
||||
|
||||
// Print and view with serial plotter (Ctrl+Shift+L)
|
||||
Serial.println(eq);
|
||||
|
||||
// Next day
|
||||
++day.JD;
|
||||
}
|
||||
}
|
||||
|
||||
void loop()
|
||||
{
|
||||
}
|
Reference in New Issue
Block a user