ActivityBot calibration tutorial help needed
PhilipWong
Posts: 8
Hi everyone,
I've doing the activitybot calibration from the website, I've downloaded the ActivityBot 2013-10-31 zip file and unzip it into the according files as suggested from the website.
when it comes to: Open ActivityBot Calibrate from ...Documents/SimpleIDE/Learn/Examples/ActivityBot Tutorial
I couldn't find the ActivityBot Tutorial file in the Examples file, nither could I find the ActivityBot Calibrate side at all.
There is a libabcalibrate.side under the ActivityBot 2013-10-31 zip (in the libabcalibrate), however when I open it the code is somewhat different to the code in the website. From the website the code should be:
while the libacalibrate.side the code in it is:
I'm wonder which one should I use? Have I not installed all the required libraries and file?
Thanks,
Philip
I've doing the activitybot calibration from the website, I've downloaded the ActivityBot 2013-10-31 zip file and unzip it into the according files as suggested from the website.
when it comes to: Open ActivityBot Calibrate from ...Documents/SimpleIDE/Learn/Examples/ActivityBot Tutorial
I couldn't find the ActivityBot Tutorial file in the Examples file, nither could I find the ActivityBot Calibrate side at all.
There is a libabcalibrate.side under the ActivityBot 2013-10-31 zip (in the libabcalibrate), however when I open it the code is somewhat different to the code in the website. From the website the code should be:
/* ActivityBot Calibrate.c */ #include "simpletools.h" #include "abcalibrate.h" int main() { servo_pins(12, 13); encoder_pins(14, 15); high(26); high(27); cal_activityBot(); low(26); low(27); }}
while the libacalibrate.side the code in it is:
#include "simpletools.h" #include "abcalibrate.h" int main() { high(26); high(27); cal_activityBot(); low(26); low(27); }
I'm wonder which one should I use? Have I not installed all the required libraries and file?
Thanks,
Philip
Comments
The shorter code file, exists to allow building the library for SimpleIDE. The file just includes a short main() function that calls the lib calibrate.c library code. That file is basically just some "sugar coating" to get SimpleIDE & propgcc to compile the library in a simple form. It does show how to make the ball to the cal_ActivityBot function so it has instructional merit!
Just make sure to put the entire "ActivityBot 2013-10-31" directory into your working "Simple Libraries" directory...
Use the code sample that you find on the website to do your calibration work.
dgately
The ActivityBot 2013-10-31 zip file contains the library files for the ActivityBot programs. To get the actual example code, you must download another zip file which is located on the first page of the section you are working through.
For example, the code for the calibrate activity is on the "Navigation Basics" landing page:
- http://learn.parallax.com/activitybot/navigation-basics
There is a download file with example code at the beginning of every tutorial section, so it is important not to skip past that page.
Thanks! Seems that I've missed that page.
yea I see where I did wrong, seems like I haven't downloaded the correct file. thanks for your help