Skip to content

Getting Started

Jeffrey Shen edited this page Jul 24, 2017 · 3 revisions

This tutorial will guide you through integrating the robotics library into your own project. It assumes you have already installed the library into your project folder.

  • First, include the library by adding this to the top of the main file: #include path/to/library/main.c.
  • Add a file named config.c into the root directory of your project. You fill out your configuration stuff here. See the other wiki pages for information on what to actually include within your configuration.
  • Add the necessary functions into your code. initialize() needs to be called in pre autonomous, autonProcedure() needs to be called in autonomous, and userControlUpdate() needs to be called in the user control while loop.

Done! You are now ready to use the robotics library.

Examples

It helps to see some example code. A sample configuration file is provided here, and a template for your main file is provided here.