compile error fro RAgen code
Posted: Thu Jan 05, 2012 9:38 pm
Hi -
So this is a bit weird, but I am new... so perhaps stupid...
I was using RAgen a few days ago and succesfuly compiled code, and uploaded but had an issue Roberto suggested would be fixed by uploading a memory file. So I made one, and uploaded and now the controller is just displaying those settings... which is I guess anticipated.
But.. I then made another couple RAgen files to try to upload and begin programming or fooling around and now everytime I try to upload I get compile errors, I have not done anything but shut down and restart the computer but now even loading the simple PDE file (from this web site) gives this error..
int TempPHMax,TempPHMin;
byte LastSec;
byte ShowGraph;
int PWMCount=0;
int CalV, CalH;
#ifdef Phillips6610LCDInv
At this line it says philips6620LCDInv does not name a type
using a RAgen file I get a message saying that 'ReefAngel' was not declared in this sco[pe at the list line shown of this PDE
// Autogenerated file by RAGen (v1.1.0.126), (01/05/2012 21:32)
// RA_010512_2132.pde
//
// This version designed for v0.8.5 Beta 17 or later
/* The following features are enabled for this PDE File:
#define DisplayImages
#define WavemakerSetup
#define DateTimeSetup
#define VersionMenu
#define ATOSetup
#define MetalHalideSetup
#define DirectTempSensor
#define DisplayLEDPWM
#define wifi
#define StandardLightSetup
#define SaveRelayState
#define WDT
#define PWMEXPANSION
*/
#include <ReefAngel_Features.h>
#include <ReefAngel_Globals.h>
#include <ReefAngel_Wifi.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <ReefAngel_EEPROM.h>
#include <ReefAngel_NokiaLCD.h>
#include <ReefAngel_ATO.h>
#include <ReefAngel_Joystick.h>
#include <ReefAngel_LED.h>
#include <ReefAngel_TempSensor.h>
#include <ReefAngel_Relay.h>
#include <ReefAngel_PWM.h>
#include <ReefAngel_Timer.h>
#include <ReefAngel_Memory.h>
#include <ReefAngel.h>
void setup()
{
ReefAngel.Init(); //Initialize controller
so its obvious I have a general issue probably with the location of a file or library... so the newbie thinks... so I updated my libraries with the online uitlity and its not helping. I cleared the RAgen regisitry etc and its still not helping
One other not directly connected issue. When I first installed RAGen it could find the controller on Port4... now it fails repetadely, i have reloaded RAgen, but always need to use the installer, which when the executable file is opened, fails, then download the executable, which is how i got it to work in the first place, but its stopped seeing the controller. Roberto tells me not to worry, but now I am wondering what I screwed up to accomplish all this.. I am not sure that these events are connected, in fact I dont think they are.. but its worth a mention.
Thanks
So this is a bit weird, but I am new... so perhaps stupid...
I was using RAgen a few days ago and succesfuly compiled code, and uploaded but had an issue Roberto suggested would be fixed by uploading a memory file. So I made one, and uploaded and now the controller is just displaying those settings... which is I guess anticipated.
But.. I then made another couple RAgen files to try to upload and begin programming or fooling around and now everytime I try to upload I get compile errors, I have not done anything but shut down and restart the computer but now even loading the simple PDE file (from this web site) gives this error..
int TempPHMax,TempPHMin;
byte LastSec;
byte ShowGraph;
int PWMCount=0;
int CalV, CalH;
#ifdef Phillips6610LCDInv
At this line it says philips6620LCDInv does not name a type
using a RAgen file I get a message saying that 'ReefAngel' was not declared in this sco[pe at the list line shown of this PDE
// Autogenerated file by RAGen (v1.1.0.126), (01/05/2012 21:32)
// RA_010512_2132.pde
//
// This version designed for v0.8.5 Beta 17 or later
/* The following features are enabled for this PDE File:
#define DisplayImages
#define WavemakerSetup
#define DateTimeSetup
#define VersionMenu
#define ATOSetup
#define MetalHalideSetup
#define DirectTempSensor
#define DisplayLEDPWM
#define wifi
#define StandardLightSetup
#define SaveRelayState
#define WDT
#define PWMEXPANSION
*/
#include <ReefAngel_Features.h>
#include <ReefAngel_Globals.h>
#include <ReefAngel_Wifi.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <ReefAngel_EEPROM.h>
#include <ReefAngel_NokiaLCD.h>
#include <ReefAngel_ATO.h>
#include <ReefAngel_Joystick.h>
#include <ReefAngel_LED.h>
#include <ReefAngel_TempSensor.h>
#include <ReefAngel_Relay.h>
#include <ReefAngel_PWM.h>
#include <ReefAngel_Timer.h>
#include <ReefAngel_Memory.h>
#include <ReefAngel.h>
void setup()
{
ReefAngel.Init(); //Initialize controller
so its obvious I have a general issue probably with the location of a file or library... so the newbie thinks... so I updated my libraries with the online uitlity and its not helping. I cleared the RAgen regisitry etc and its still not helping
One other not directly connected issue. When I first installed RAGen it could find the controller on Port4... now it fails repetadely, i have reloaded RAgen, but always need to use the installer, which when the executable file is opened, fails, then download the executable, which is how i got it to work in the first place, but its stopped seeing the controller. Roberto tells me not to worry, but now I am wondering what I screwed up to accomplish all this.. I am not sure that these events are connected, in fact I dont think they are.. but its worth a mention.
Thanks