loading
 
Sparki: Accelerometer does not name a type
Chuck Untulis from United States  [7 posts]
10 year
I reloaded SparkiDuino a couple of hours ago.
From http://www.roborealm.com/help/Arcbotics_Sparki.php I unzipped the files into
C:\Program Files (x86)\SparkiDuino\hardware\arduino\cores\arduino
I saved the RoboRealm Sparki Sketch  into C:\Arduino\ArcBotics_Sparki_ino\ArcBotics_Sparki_ino.ino
I start SparkiDuino and load the C:\Arduino\ArcBotics_Sparki_ino\ArcBotics_Sparki_ino.ino
When I try to upload the code, I get the following error message - http://screencast.com/t/zjYrp2jTdi

What else needs to be done?

Chuck
Steven Gentner from United States  [1446 posts] 10 year
Chuck,

Can you check the

C:\Program Files (x86)\SparkiDuino\hardware\arduino\cores\arduino\Sparki.h

file and see if there is a

    void updateAll();

on line 282 in there? If not you will have to download the library again after clearning your browser cache since the file is an older version and isn't matching what the .ino uses.

Try the following link which has a slightly different url that will cause the browser not to just use its cache

http://www.roborealm.com/help/ArcBotics_Sparki/Sparki.zip?1234

STeven.
Chuck Untulis from United States  [7 posts] 10 year
Hi Steven,

I cleared the Chrome cache and the Downloads folder then downloaded http://www.roborealm.com/help/ArcBotics_Sparki/Sparki.zip?1234, unzipped the contents into C:\\Program Files (x86)\\SparkiDuino\\hardware\\arduino\\cores\\arduino\\ and then did a search of
Sparki.h using WorPad and UpdateAll() is not found in the file.

Chuck
Steven Gentner from United States  [1446 posts] 10 year
Not sure what's going on ... the right file is in that zip.

I've included just the .h file below. Can you edit that, check to see if the routine is there and then copy it over the existing one?

STeven.
Sparki.h.zip
Chuck Untulis from United States  [7 posts] 10 year
Hi Steven,

I checked the file and it contained updateAll so I copied it to C:\Program Files (x86)\SparkiDuino\hardware\arduino\cores\arduino and loaded the ArcBotics_Sparki_ino code and when I tried to upload it to the Sparki, I get the same error - C:\Program Files (x86)\SparkiDuino\hardware\arduino\cores\arduino.

I do not find a definition for Accelerometer that is used in the definition of this statement "Accelerometer accel;" it is not defined in this file. What is the updateAll supposed to do? it looks like a function call and not a type definition? Am I the only one to have this problem? Where is the updateAll() function being defined? Is there another file I should be looking in?

What is the windows equivalent to grep?

Thanks

Chuck
Steven Gentner from United States  [1446 posts] 10 year
Chuck,

Ok, then it looks like you've probably got something that is caching the download of the full library ... which is what you need to solve the Accelerometer problem ... since that file is in the download.

Since we had success with the last attachment to this post, I have renamed and rezipped the lib and attached it here with a different name. Again, unzip that to the same location and check that an Accelerometer.cpp and Accelerometer.h files exist. If so, then you've finally gotten the right zip bundle and things should hopefully compile.

STeven.

Sparki_Corrected.zip

This forum thread has been closed due to inactivity (more than 4 months) or number of replies (more than 50 messages). Please start a New Post and enter a new forum thread with the appropriate title.

 New Post   Forum Index