Shop OBEX P1 Docs P2 Docs Learn Events
MyActivityBot (Android App) - Motion-Control your bot - Page 2 — Parallax Forums

MyActivityBot (Android App) - Motion-Control your bot

2»

Comments

  • jazzedjazzed Posts: 11,803
    edited 2014-09-14 11:30
    >> propeller-elf-gcc.exe: error: OARD: No such file or directory

    What is OARD ?

    The project in the .zip file is KenichiActivityBot.side .... What happens if you unzip and open that?
  • NWCCTVNWCCTV Posts: 3,629
    edited 2014-09-14 12:34
    That is the project I copied to the directory I specified.
  • NWCCTVNWCCTV Posts: 3,629
    edited 2014-09-14 12:37
    Also, How do I change the default pin numbers that abdrive.h uses?
  • jazzedjazzed Posts: 11,803
    edited 2014-09-14 15:16
    NWCCTV wrote: »
    That is the project I copied to the directory I specified.

    Maybe you can list the file contents of OARD?

    Something is totally wrong.
  • edited 2014-09-14 16:12
    NWCCTV wrote: »
    Also, How do I change the default pin numbers that abdrive.h uses?

    In SimpleIDE, use Help -> Simple Library Reference. Then, follow the link to abdrive.h, and it should list a functions for changing the servo and encoder pins.

    Andy
  • twm47099twm47099 Posts: 867
    edited 2014-09-14 16:59
    NWCCTV wrote: »
    Also, How do I change the default pin numbers that abdrive.h uses?

    I've copied KenichiActivityBot.h below.

    Change the values in the define // Bluetooth/UART section to match your pins.
    Tom

      // H/W declaration
      // Drives
    #define leftServo     12
    #define rightServo    13
    #define leftEncoder   14
    #define rightEncoder  15
    
      // Feedback
    #define signalLED     26
    
    
      // Bluetooth/UART
    #define rxPort        11
    #define txPort        10
    #define modeValue     0
    #define baudRate      9600
    
    // Delay
    #define signalPause   100
    #define notConnected  1000
    #define connected     150
    
    // Logics
    #define true          1
    #define false         0
    
    // Cons
    #define uint          unsigned int
    
    // Comm Protocol
    #define STARTBYTE     0xA1
    #define STOPBYTE      0xAF
    #define CMDSTREAM     0xAA
    #define CHECKSUM      0x7F
    #define BUFFLENGTH    6
    
    
    
    // Function Prototypes
    //void hwSetup();
    void hwSetup(int rx, int tx, int mode, int baud);
    void connectionLED(void *par);  // Cog 1
    
      
    
  • NWCCTVNWCCTV Posts: 3,629
    edited 2014-09-14 20:53
    OK. I think I got all the bugs worked out. Everything compiles just fine now after starting fresh and creating a new project. Now, how would I go about modifying this code to not use encoders? I would like to try it out on my Wild Thumper project. The problem is that it would be very difficult to use encoders on the WT. I am using servodiffdrive.h for my current IR set up on the WT and it is working great. If I could implement it in to this code that would be great. However, I am confused as to how to do that.
  • edited 2014-09-14 21:47
    Try the approach from post number 36 again. Look for the section titled Functions, it's got a nice list of the functions you can use. ...and I'll bet there's one in there for enabling/disabling encoder feedback. :)
  • NWCCTVNWCCTV Posts: 3,629
    edited 2014-09-15 00:49
    I will give that a try on Monday. Getting a bit late now.

    EDIT: Question, what is this? If I change my Servo Pins to 14 and 15 does this also need to be changed?
    [TABLE="class: memberdecls"]
    [TR]
    [TD="class: memItemLeft"]#define
    [/TD]
    [TD="class: memItemRight"][B]_ActivityBot_EE_Pins_[/B] 12
    [/TD]
    [/TR]
    [/TABLE]
    
Sign In or Register to comment.