v0.8.5.19

Related to the development libraries, released by Curt Binder
Post Reply
binder
Posts: 2865
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

v0.8.5.19

Post by binder »

Just released an update to the libraries.

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
Get it where you normally get it.....wifi update utility or download on my github account (https://github.com/curtbinder/ReefAngel ... /v0.8.5.19)

curt
alexwbush
Posts: 327
Joined: Tue Mar 22, 2011 12:45 am
Location: San Diego, CA

Re: v0.8.5.19

Post by alexwbush »

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.

Code: Select all

DelayedOn(Box1_Port4, 1); //Skimmer Delayed on
any ideas? Also... RA+ with built in wifi... jealous
alexwbush
Posts: 327
Joined: Tue Mar 22, 2011 12:45 am
Location: San Diego, CA

Re: v0.8.5.19

Post by alexwbush »

also, for the next library push... can you add the moonphase calculation to ReefAngel_Globals.cpp?

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;
}
wolfador
Posts: 241
Joined: Sun Sep 04, 2011 9:59 am
Location: Pittsburgh, PA

Re: v0.8.5.19

Post by wolfador »

alexwbush wrote:also, for the next library push... can you add the moonphase calculation to ReefAngel_Globals.cpp?
MoonPhase() is already a global function
John
ReefAngel and ReefAngel-HD developer
If the RA iOS app has helped please consider a donation
Image
wolfador
Posts: 241
Joined: Sun Sep 04, 2011 9:59 am
Location: Pittsburgh, PA

Re: v0.8.5.19

Post by wolfador »

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.

Code: Select all

DelayedOn(Box1_Port4, 1); //Skimmer Delayed on
any ideas? Also... RA+ with built in wifi... jealous
I think it should be used as:

Code: Select all

ReefAngel.Relay.DelayedOn(Box1_Port4, 1); //Skimmer Delayed on
John
ReefAngel and ReefAngel-HD developer
If the RA iOS app has helped please consider a donation
Image
binder
Posts: 2865
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: v0.8.5.19

Post by binder »

yes. i moved DelayedOn to be part of the relay class. it makes more sense that way.

curt
alexwbush
Posts: 327
Joined: Tue Mar 22, 2011 12:45 am
Location: San Diego, CA

Re: v0.8.5.19

Post by alexwbush »

wolfador wrote:
alexwbush wrote:also, for the next library push... can you add the moonphase calculation to ReefAngel_Globals.cpp?
MoonPhase() is already a global function
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.
alexwbush
Posts: 327
Joined: Tue Mar 22, 2011 12:45 am
Location: San Diego, CA

Re: v0.8.5.19

Post by alexwbush »

wolfador wrote:I think it should be used as:

Code: Select all

ReefAngel.Relay.DelayedOn(Box1_Port4, 1); //Skimmer Delayed on
excellent, thanks!
Post Reply