ATO code correct?

Share you PDE file with our community
Post Reply
miked
Posts: 86
Joined: Fri Feb 10, 2012 11:06 am

ATO code correct?

Post by miked »

here is the code. I am reinstalling it due to issues. please look at my ATO set up and verify that it is set up as a high and high/high backup to turn off power to port 5.

thanks, oh and dont mind the PWM error, I manually fixed it after posting code.

Code: Select all

// Autogenerated file by RAGen (v1.2.1.158), (03/08/2012 19:22)
// RA_030812_1922.ino
//
// This version designed for v0.9.0 or later

/* The following features are enabled for this File: 
#define VersionMenu
#define DisplayLEDPWM
#define wifi
#define SaveRelayState
#define SIMPLE_MENU
#define PWMEXPANSION
#define ENABLE_ATO_LOGGING
#define ENABLE_EXCEED_FLAGS
*/


#include <ReefAngel_Features.h>
#include <Globals.h>
#include <RA_Wifi.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <InternalEEPROM.h>
#include <RA_NokiaLCD.h>
#include <RA_ATO.h>
#include <RA_Joystick.h>
#include <LED.h>
#include <RA_TempSensor.h>
#include <Relay.h>
#include <RA_PWM.h>
#include <Timer.h>
#include <Memory.h>
#include <ReefAngel.h>


void setup()
{
    ReefAngel.Init();  //Initialize controller

    ReefAngel.FeedingModePorts = Port6Bit | Port7Bit | Port8Bit;
    ReefAngel.WaterChangePorts = Port4Bit | Port5Bit | Port6Bit | Port7Bit | Port8Bit;
    ReefAngel.OverheatShutoffPorts = Port4Bit;
    ReefAngel.LightsOnPorts = Port1Bit | Port2Bit | Port3Bit;

    // Ports that are always on
    ReefAngel.Relay.On(Port6);
    ReefAngel.Relay.On(Port7);
    ReefAngel.Relay.On(Port8);
}

void loop()
{
    // Specific functions
    ReefAngel.StandardLights(Port1);
    ReefAngel.StandardLights(Port2);
    ReefAngel.MHLights(Port3);
    ReefAngel.StandardHeater(Port4);
    ReefAngel.StandardATO(Port5);
    ReefAngel.Relay.Set(Port5,!ReefAngel.HighATO.IsActive());

    ReefAngel.PWM.ActinicPWMSlope(10,0,23,0,5,75,180,5);
    ReefAngel.PWM.DaylightPWMSlope(11,0,21,0,5,65,120,5);

    ReefAngel.Portal("miked", " :lol: ");

    ReefAngel.ShowInterface();
}
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: ATO code correct?

Post by rimai »

Change this:

Code: Select all

    ReefAngel.StandardATO(Port5);
To this:

Code: Select all

    ReefAngel.SingleATO(Port5);
Roberto.
miked
Posts: 86
Joined: Fri Feb 10, 2012 11:06 am

Re: ATO code correct?

Post by miked »

rimai wrote:Change this:

Code: Select all

    ReefAngel.StandardATO(Port5);
To this:

Code: Select all

    ReefAngel.SingleATO(Port5);
Thanks
Image
Post Reply