Roborealm - won't compile the sketch

I took up the offer on Roborealm. I’m trying to compile the sketch but I get a set of errors. Anyone got it working yet?

ArcBotics_Sparki.ino: In function ‘void loop()’:
ArcBotics_Sparki:313: error: ‘class SparkiClass’ has no member named 'gripperCloseSteps’
ArcBotics_Sparki:314: error: ‘class SparkiClass’ has no member named 'gripperOpenSteps’
ArcBotics_Sparki:390: error: ‘class SparkiClass’ has no member named ‘updateAll’

If I comment these lines out, then I get:

C:\Program Files (x86)\SparkiDuino\hardware\arduino\cores\arduino\Sparki.cpp:383: error: no ‘void SparkiClass::gripperOpenSteps()’ member function declared in class 'SparkiClass’
C:\Program Files (x86)\SparkiDuino\hardware\arduino\cores\arduino\Sparki.cpp:388: error: no ‘void SparkiClass::gripperCloseSteps()’ member function declared in class 'SparkiClass’
C:\Program Files (x86)\SparkiDuino\hardware\arduino\cores\arduino\Sparki.cpp:393: error: no ‘void SparkiClass::singleMotorRotateSteps(int, int, int, int)’ member function declared in class 'SparkiClass’
C:\Program Files (x86)\SparkiDuino\hardware\arduino\cores\arduino\Sparki.cpp:1667: error: no ‘void SparkiClass::updateAll()’ member function declared in class ‘SparkiClass’

I contacted Roborealm about that and got this reply:

[quote]While arcbotics has our changes to their lib they are not yet integrated. You’ll have to download the modifications from

roborealm.com/help/ArcBotics … Sparki.zip

(linked to from our documentation page) and overwrite the Sparki.cpp (make a copy just in case) which will then provide the needed routines. This file is located in

C:\Program Files (x86)\ArcBotics Arduino\libraries\Sparki

Once they get integrated with the base lib you’ll not have this problem going forward.
[/quote]

I did not try it out. I just figured I would probably wait until ArcBotics released an update.

Thanks. Roborealm sent me a link to an updated version of the library. And its all working now.

David

David,

Roborealms sent me an updated Sparki.zip as well, but I still haven’t been able to get it to work. I’m still getting the same “no member named 'gripperCloseSteps” error as before, even after replacing the Sparki.cpp file.

The original instructions say to replace the file at “C:\Program Files (x86)\ArcBotics Arduino,” but my install (v.1.0.5.3, the latest) is in the “C:\Program Files (x86)\SparkiDuino” directory.

I also have a Sparki.cpp file located at “C:\Program Files (x86)\SparkiDuino\hardware\arduino\cores\arduino.” I also tried replacing it there, but the same error persists.

Did you do something different?

I simply started with a fresh install, and then I copied the contents of the file sent by Roborealm into C:\Program Files (x86)\SparkiDuino\hardware\arduino\cores\arduino and it all worked fine.

David

You need to replace both Sparki.h and Sparki.cpp

I’d agree with that. They both changed.

David