-
Notifications
You must be signed in to change notification settings - Fork 0
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, anduserControlUpdate()
needs to be called in the user control while loop.
Done! You are now ready to use the robotics library.
It helps to see some example code. A sample configuration file is provided here, and a template for your main file is provided here.
Beginner Features:
Intermediate Features:
Advanced Features:
Controlling the LCD
Using Autonomous Modes
Custom Pre Auton Procedure
Using Autonomous Modes in User Control
More Remote Functionality
Configuring Bailout Button
Custom User Control Procedure
PID Control
Drive Train Control