View Single Post
  #4   Spotlight this post!  
Unread 09-06-2016, 04:18 PM
EmileH's Avatar
EmileH EmileH is offline
it's not a water game, ok?
AKA: Emile Hamwey
FRC #1058 (PVC Pirates) & FF (NE Way You Want It)
Team Role: Programmer
 
Join Date: Dec 2014
Rookie Year: 2011
Location: New England
Posts: 531
EmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant futureEmileH has a brilliant future
Re: Using LIDAR Lite 2 sensor on RoboRIO I2C port

IIRC, in 2015, there was no Java/C++ support for the dedicated I2C port on the RoboRIO - it had something to do with it only working in Labview and I don't really know the details. The easy way around this was to use the MXP port which did work (as long as you weren't using this port already for another device). I don't know if this was fixed for 2016 - somebody correct me if I'm wrong

To be safe, use the MXP port. This is my previous post with our code and the base that it came from, but we were using v1 of the LIDAR module (silver label). It is likely that you are using v2 (blue label) and will need to modify the code as the v2 reads differently than v1. Check the manual for instructions on reading from the device.
__________________
2016-present: High School Student, FRC 1058 PVC Pirates
2016: RiverRage 20 Champions, Battle of the Bay 3 Champions

2013-2015: Middle School Student, FRC 3467 Windham Windup
Reply With Quote