View Single Post
  #2   Spotlight this post!  
Unread 11-28-2015, 08:46 PM
slibert slibert is offline
Software Mentor
AKA: Scott Libert
FRC #2465 (Kauaibots)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2005
Location: Kauai, Hawaii
Posts: 337
slibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud of
Re: Integrating navx MXP into past Robot Project

Quote:
Originally Posted by Cinnamon Toast View Post
Hey guys,

I was wondering if anyone has had any experience in integrating the navx into an old robot project. I've downloaded the setup tools for the library, installed them, and imported the examples into my project explorer of eclipse. Looking at the Robot.cpp file of the examples, i can see that that the code is not written in the Sample robot template, which is what I happen to be using at the time. The only difference that I see with the example and my old robot project is the inclusion of the AHRS.h library, which seems to handle the transfer of sensor data over whatever communication protocol of serial you choose. When trying to include that library in the old code, it obviously doesn't find the library and tosses me some red flags. I know that I need to mess with properties to link that library to the project but I have exactly no idea how I would go about doing that. Any help is appreciated, and sorry if I don't understand some things in advance!

-Ethan
After you run the setup program in the latest build .zip file, the navx_frc_cpp library is at <HomeDirectory>\navx-mxp\c++\lib (e.g., if your user name is Robot, the directory name will be C:\Users\Robot\navx-mxp\c++\lib).

The navx_frc_cpp library is dependent upon the wpi library, so the navx_frc_cpp library must be listed before the wpi library in the list in your project libraries tab.

You can add the navx_frc_cpp library and set the library order (in Eclipse) by bringing up the project properties, and then within the properties dialog selecting C/C++ General -> Paths and Symbols in the tree on the left. Next, within the Paths and Symbols pane, click on the libraries tab. You will need to have both the "navx_frc_cpp" and then the "wpi" libraries listed. After that rebuild.
Reply With Quote