Shop OBEX P1 Docs P2 Docs Learn Events
ActivityBot calibration tutorial help needed — Parallax Forums

ActivityBot calibration tutorial help needed

PhilipWongPhilipWong Posts: 8
edited 2014-01-21 21:49 in Robotics
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:
/*    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

  • dgatelydgately Posts: 1,630
    edited 2014-01-19 00:16
    Philip,

    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
  • Courtney JacobsCourtney Jacobs Posts: 903
    edited 2014-01-21 12:47
    Hi Philip,

    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.
  • PhilipWongPhilipWong Posts: 8
    edited 2014-01-21 21:46
    Hi Courtney,

    Thanks! Seems that I've missed that page.
  • PhilipWongPhilipWong Posts: 8
    edited 2014-01-21 21:49
    dgately,

    yea I see where I did wrong, seems like I haven't downloaded the correct file. thanks for your help
Sign In or Register to comment.