RAGen v1.2.1

Community contributed apps
Post Reply
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

RAGen v1.2.1

Post by binder »

For those who encountered an error with RAGen in generating Internal Memory files, I have fixed that issue. RAGen is now capable of generating the file properly to compile.

For those who have already ran the installer and updated the libraries, here is a direct link to download RAGen.

https://github.com/downloads/curtbinder ... static.zip

This version is v1.2.1.158.

Simply download, unzip and place in "C:\Program Files\Reef Angel Controller". Make sure you overwrite the existing RAGen.

Enjoy! :ugeek:
rossbryant1956
Posts: 471
Joined: Sat Jan 14, 2012 2:08 pm
Location: Montgomery Village, MD

Re: RAGen v1.2.1

Post by rossbryant1956 »

thx binder..

those of us chickens that were waiting until the patch came out can now just follow the regular instructions or do we also need to patch in this new version?

Again, thx
Roscoe's Reefs - Starting Over Again:

Building new 29g Nano after landlord went berserk over my 4 75 gallon tanks, Multiple RA's, Water mixing stations, etc. Your help welcomed in remembering all I've forgotten.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: RAGen v1.2.1

Post by rimai »

I uploaded the new installer with the new RAGen in it.
Download it at: http://reefangel.com/Download.ashx
Roberto.
bigHUN
Posts: 97
Joined: Sat Dec 03, 2011 9:41 pm

Re: RAGen v1.2.1

Post by bigHUN »

both the new installer and Ragen looks way better :) and working! the client is a bit lagging but its OK
Seedlessone
Posts: 135
Joined: Tue Jan 24, 2012 6:20 pm

Re: RAGen v1.2.1

Post by Seedlessone »

everything seems to be working just fine now. Thanks to everyone that was invloved.
rossbryant1956
Posts: 471
Joined: Sat Jan 14, 2012 2:08 pm
Location: Montgomery Village, MD

Re: RAGen v1.2.1

Post by rossbryant1956 »

attempting to follow instructions...getting error class twowire has no member named read. What was additionaly weird is that the example memory file will not load either. Same error. Thx
Roscoe's Reefs - Starting Over Again:

Building new 29g Nano after landlord went berserk over my 4 75 gallon tanks, Multiple RA's, Water mixing stations, etc. Your help welcomed in remembering all I've forgotten.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: RAGen v1.2.1

Post by rimai »

Download the installer from http://www.reefangel.com/Download.ashx
I had to repackage to include new version of RAGen and added also one missing library that was used on the simple code.
This way, you know for sure you are up-to-date with the libraries and RAGen.
Roberto.
TanksNStuff
Posts: 188
Joined: Fri Dec 30, 2011 6:57 am

Re: RAGen v1.2.1

Post by TanksNStuff »

I used the new RA installer download, ran it and it installed Arduino 1.0, Dev Lib v0.9.0, RAGen 1.2.1.158 (for v0.9.0 Libs), and Graphical WiFi Utility.

Ran RAGen and created new Internal Memory file, then launched Arduino 1.0 and tried to upload memory.

Got the following error (replaced my name with ****** for security):

Code: Select all

In file included from Memory_021612_2333.cpp:9:
C:\Users\******\Documents\Arduino\libraries\Globals/Globals.h:27:29: error: RA_CustomColors.h: No such file or directory
Memory_021612_2333.cpp: In function 'void setup()':
Memory_021612_2333:23: error: 'COLOR_WHITE' was not declared in this scope
Memory_021612_2333.cpp: In function 'void loop()':
Memory_021612_2333:77: error: 'COLOR_BLACK' was not declared in this scope
Memory_021612_2333:77: error: 'COLOR_WHITE' was not declared in this scope
There was a yellow hi-lite on the following line in the memory file:

e.Clear(COLOR_WHITE,0,0,132,132);

Do I need to generate / upload a new .ino from RAGen to enable the custom colors first?

Here's the memory file generated in RAGen

Code: Select all

// Autogenerated file by RAGen (v1.2.1.158), (02/16/2012 23:33)
// Memory_021612_2333.ino
//
// This file sets the default values to the Internal Memory
//


#include <ReefAngel_Features.h>
#include <Globals.h>
#include <Time.h>
#include <OneWire.h>
#include <RA_NokiaLCD.h>
#include <avr/pgmspace.h>
#include <InternalEEPROM.h>
#include <Wire.h>
#include <Memory.h>


RA_NokiaLCD e;

void setup()
{
    e.Init();
    e.Clear(COLOR_WHITE,0,0,132,132);
    e.BacklightOn();

    InternalMemory.MHOnHour_write(9);
    InternalMemory.MHOnMinute_write(0);
    InternalMemory.MHOffHour_write(20);
    InternalMemory.MHOffMinute_write(30);
    InternalMemory.MHDelay_write(5);
    InternalMemory.StdLightsOnHour_write(8);
    InternalMemory.StdLightsOnMinute_write(0);
    InternalMemory.StdLightsOffHour_write(22);
    InternalMemory.StdLightsOffMinute_write(0);
    InternalMemory.DP1OnHour_write(20);
    InternalMemory.DP1OnMinute_write(0);
    InternalMemory.DP2OnHour_write(22);
    InternalMemory.DP2OnMinute_write(30);
    InternalMemory.DP1Timer_write(0);
    InternalMemory.DP2Timer_write(0);
    InternalMemory.DP1RepeatInterval_write(60);
    InternalMemory.DP2RepeatInterval_write(60);
    InternalMemory.ATOTimeout_write(60);
    InternalMemory.ATOHighTimeout_write(60);
    InternalMemory.ATOHourInterval_write(0);
    InternalMemory.ATOHighHourInterval_write(0);
    InternalMemory.FeedingTimer_write(900);
    InternalMemory.LCDTimer_write(600);
    InternalMemory.LEDPWMActinic_write(50);
    InternalMemory.LEDPWMDaylight_write(50);
    InternalMemory.WM1Timer_write(0);
    InternalMemory.WM2Timer_write(354);
    InternalMemory.HeaterTempOn_write(780);
    InternalMemory.HeaterTempOff_write(791);
    InternalMemory.ChillerTempOn_write(810);
    InternalMemory.ChillerTempOff_write(785);
    InternalMemory.OverheatTemp_write(1500);
    InternalMemory.PHMax_write(840);
    InternalMemory.PHMin_write(550);
    InternalMemory.SalMax_write(2550);
    InternalMemory.RFMode_write(Constant);
    InternalMemory.RFSpeed_write(140);
    InternalMemory.RFDuration_write(8);
    InternalMemory.RFDuration_write(8);
    InternalMemory.PWMSlopeStartD_write(15);
    InternalMemory.PWMSlopeEndD_write(128);
    InternalMemory.PWMSlopeDurationD_write(60);
    InternalMemory.PWMSlopeStartA_write(15);
    InternalMemory.PWMSlopeEndA_write(128);
    InternalMemory.PWMSlopeDurationA_write(60);
    InternalMemory.IMCheck_write(0x5241494D);
}

void loop()
{
    // display success screen
    e.DrawText(COLOR_BLACK, COLOR_WHITE, MENU_START_COL, MENU_START_ROW*2, "Internal Memory Set");
    e.DrawText(COLOR_BLACK, COLOR_WHITE, MENU_START_COL, MENU_START_ROW*4, "Now load your");
    e.DrawText(COLOR_BLACK, COLOR_WHITE, MENU_START_COL, MENU_START_ROW*5, "   RA code file");
    delay(5000);
}
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: RAGen v1.2.1

Post by rimai »

Open RAGen
Click on features tab
Uncheck Custom Colors
Hit Save

Try to upload now.
Roberto.
TanksNStuff
Posts: 188
Joined: Fri Dec 30, 2011 6:57 am

Re: RAGen v1.2.1

Post by TanksNStuff »

Should I create a new memory file first, or just uncheck it and use the same one?

That worked (just unchecking, using same memory file), thanks Roberto.
Last edited by TanksNStuff on Thu Feb 16, 2012 10:06 pm, edited 1 time in total.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: RAGen v1.2.1

Post by rimai »

You can uncheck and use same one.
Make sure to save it though
Roberto.
TanksNStuff
Posts: 188
Joined: Fri Dec 30, 2011 6:57 am

Re: RAGen v1.2.1

Post by TanksNStuff »

That worked, thanks!
rossbryant1956
Posts: 471
Joined: Sat Jan 14, 2012 2:08 pm
Location: Montgomery Village, MD

Re: RAGen v1.2.1

Post by rossbryant1956 »

rossbryant1956 wrote:attempting to follow instructions...getting error class twowire has no member named read. What was additionaly weird is that the example memory file will not load either. Same error. Thx
I continue to get the same error. I went back, de-installed everything, made sure all had been deleted by the un-install (it hadn't), re-downloaded the installer, and re-installed.

I am seeing Arduino 1.0, I made sure I have the most current libraries...what am I doing wrong?

___________________
found the post:

Oh by the way I must have not hit post a while back, I had made a message indicating that I got the code to compile and load onto the RA by deleting my User/Arduino folder and reinstalling with the Library Update Tool.

Did this, fixed it for now. Thx
Roscoe's Reefs - Starting Over Again:

Building new 29g Nano after landlord went berserk over my 4 75 gallon tanks, Multiple RA's, Water mixing stations, etc. Your help welcomed in remembering all I've forgotten.
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: RAGen v1.2.1

Post by binder »

Cool.

The problem you were running into was that Custom Colors was defined. That just means that you are using your own custom colors in a separate file. That include statement is not placed in the Internal Memory file. So you either have to manually add it or uncheck the Custom Colors (and press save on the Features tab) and then upload your Internal Memory.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: RAGen v1.2.1

Post by rimai »

Should we include the header file in the internal memory file so we don't run into this problems in the future?
Roberto.
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: RAGen v1.2.1

Post by binder »

rimai wrote:Should we include the header file in the internal memory file so we don't run into this problems in the future?
one step ahead of you, already got that incorporated and will be in next release. :-)
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: RAGen v1.2.1

Post by rimai »

Awesome :)
Roberto.
rossbryant1956
Posts: 471
Joined: Sat Jan 14, 2012 2:08 pm
Location: Montgomery Village, MD

Re: RAGen v1.2.1

Post by rossbryant1956 »

One additional point to consider. I wasn't intentionally using custom colors, unless it was something I did in a previous version of my code\internal memory. Not that far along in my "learning-ness." When I saw the extra post, I looked and thought my directory looked a little gunked up with other files and decided to try this.

Worked like a charm. BTW, again thx you guys. Appreciate all you do.
Roscoe's Reefs - Starting Over Again:

Building new 29g Nano after landlord went berserk over my 4 75 gallon tanks, Multiple RA's, Water mixing stations, etc. Your help welcomed in remembering all I've forgotten.
projectx
Posts: 120
Joined: Sat Apr 23, 2011 6:53 pm

Re: RAGen v1.2.1

Post by projectx »

I am getting this error My Documents\Arduino\libraries\DS1307RTC\DS1307RTC.cpp:94: error: 'class TwoWire' has no member named 'write'

Any ideas? Started from scratch with my config
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: RAGen v1.2.1

Post by rimai »

RAGen 1.2.1 and/or libraries 0.9.0 will require Arduino 1.0
My suggestion is rename your libraries folder to librariesold, uninstall the previous installer and install the newest one.
You can download it at http://www.reefangel.com/Download.ashx
Roberto.
projectx
Posts: 120
Joined: Sat Apr 23, 2011 6:53 pm

Re: RAGen v1.2.1

Post by projectx »

Thanks that did it, I should know to unistall and start from scratch
Image
image
Posts: 6
Joined: Wed Mar 07, 2012 11:48 am

Re: RAGen v1.2.1

Post by image »

I'm sure I'm just missing something... but I don't see a 1.2.1 installer on the downloads page? I see a "static", but it's just the RAGen executable. Can I just put that anywhere?
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: RAGen v1.2.1

Post by rimai »

Ragen is installed for you with the Reef Angel Installer.
http://www.reefangel.com/Download.ashx
Roberto.
image
Posts: 6
Joined: Wed Mar 07, 2012 11:48 am

Re: RAGen v1.2.1

Post by image »

rimai wrote:Ragen is installed for you with the Reef Angel Installer.
http://www.reefangel.com/Download.ashx
Ahh... got it. I had a crazy old version of the installer for some reason.

Thanks!
Image
Post Reply