Show Posts
Pages: [1]
1  Development / Other Software Development / Re: RunningAverage Class on playground on: March 01, 2011, 05:45:18 pm
Rob, I found the problem , I had not deleted the .o file and restarted the IDE after changing the .h file.

compiles OK now.

Thanks for your help.

Rock.
2  Development / Other Software Development / Re: RunningAverage Class on playground on: February 28, 2011, 08:53:58 pm
Rob, Thanks for that, the compiler gets past that, but now comes up with another problem,  error : request for member 'clr' in 'myRA', which is of non-class type 'RunningAverage ()()'.
This occurs also for member 'add' and 'avg' when I comment out the other problem lines.

I know zip about C++ so I'm at a loss .

Thanks Rock.
3  Development / Other Software Development / Re: Convert string to long integer on Arduino on: February 28, 2011, 01:24:13 am
Here is an easier way, look up toCharArray
zhrs is the input string , [] is the array size (number of characters in string +1)
dhrs is the int output.

   char tarray[3];
   zhrs.toCharArray(tarray, sizeof(tarray));
   dhrs = atoi(tarray); 


Rock
4  Development / Other Software Development / Re: RunningAverage Class on playground on: February 28, 2011, 01:06:48 am

Rob, Just tried to get your example to go but comes up with a compile error.

\libraries\RunningAverage\RunningAverage.cpp:26: error: definition of implicitly-declared 'RunningAverage::~RunningAverage()'

Any help appreciated .

Thanks Rock.
5  Forum 2005-2010 (read only) / Development / Re: Character Based LCD library recommended API on: December 24, 2010, 01:35:12 am
Hey, Dale, the skeleton lib link on the LCDAPI page does not work.

Thanks Rock.
Pages: [1]