Here's some of the highlights:
- Moved PWM Expansion commands to PWM class
- Added RF & Salinity classes
- pH averaging
- Added AI class
- Updated the default Features - Simple Menu & Wifi enabled by default
- Added in new wifi commands
curt
Code: Select all
DelayedOn(Box1_Port4, 1); //Skimmer Delayed on
Code: Select all
byte MoonPhase()
{
int m,d,y;
int yy,mm;
long K1,K2,K3,J,V;
byte PWMvalue;
m=month();
d=day();
y=year();
yy=y-((12-m)/10);
mm=m+9;
if (mm>=12) mm-=12;
K1=365.25*(yy+4712);
K2=30.6*mm+.5;
K3=int(int((yy/100)+49)*.75)-38;
J=K1+K2+d+59-K3;
V=(J-2451550.1)/0.29530588853;
V-=int(V/100)*100;
V=abs(V-50);
PWMvalue=4*abs(50-V); // 5.12=100% 4=~80%
//pinMode(lowATOPin,OUTPUT);
return (PWMvalue*100)/255;
}
MoonPhase() is already a global functionalexwbush wrote:also, for the next library push... can you add the moonphase calculation to ReefAngel_Globals.cpp?
I think it should be used as:alexwbush wrote:thanks for the update. I didn't realize I needed it forthe custom menu, but apparently my library was outdated. I am just starting with it, but when I upgaded the delay function no longer worked.
any ideas? Also... RA+ with built in wifi... jealousCode: Select all
DelayedOn(Box1_Port4, 1); //Skimmer Delayed on
Code: Select all
ReefAngel.Relay.DelayedOn(Box1_Port4, 1); //Skimmer Delayed on
moonphase wouldn't work fro me until I pasted the code into the ReefAngel_Globals.cpp. Well I take that back... the file wouldn't compile until it did. I'm not entirely sure it works yet. I haven't caught it in the middle of the night yet and it's not tracked on any of the charts.wolfador wrote:MoonPhase() is already a global functionalexwbush wrote:also, for the next library push... can you add the moonphase calculation to ReefAngel_Globals.cpp?
excellent, thanks!wolfador wrote:I think it should be used as:Code: Select all
ReefAngel.Relay.DelayedOn(Box1_Port4, 1); //Skimmer Delayed on