Configuring Library Directory

So, I downloaded jpearman’s smart motor library, because for some reason it isn’t in my robotc includes folder. From the PDF he included, it seems you can configure where libraries are pulled from, but I don’t know what to replace so I don’t corrupt robotc. Also, I plan to use the library in competition, so the competition includes still needs to be able to be accessed. Can anyone help?

Why would it be? It was not created by Robomatter. (although perhaps we should start including it now I work there :slight_smile: )

You have two options.

  1. Just place the library in the same folder as your source code.

  2. Configure the user library path in the ROBOTC preferences dialog. This is useful if you want to access it from source files that are saved in several different locations. This is the dialog you need (the menu level needs to be “Expert” or “Super user” to see this, it’s hidden in the “Basic” setting.

Make sure you have the latest version (V1.06 IIRC), see the documentation at the top of the SmartMotorLib.c file, github is the best place to download from as that’s always up to date.

(This is the V4.50 dialog, looks a little different in older versions)
[ATTACH]9719[/ATTACH]