View Single Post
  #3   Spotlight this post!  
Unread 11-10-2015, 14:02
GGorman GGorman is offline
Registered User
FRC #5419 (A-Team)
Team Role: Mentor
 
Join Date: Mar 2015
Rookie Year: 2010
Location: United States
Posts: 5
GGorman is an unknown quantity at this point
Re: LidarLite v2 communications issues

We just did a state machine in periodic tasks that switched between Write and Read inside a 50ms loop. That way we were sure we stayed outside the delays - and yes we could not figure out how to sense ACK/NAK either.

So far on the v2 it's not reacting the same at all. Tech support thinks the WpiLib is sending a "double start" that confuses the unit. I don't have a decent oscilliscope to see what is going on at the digital level but wondering if that is what's doing it.

Even when I just open the channel and try to read register x1 it doesn't seem to work.

As far as the Labview code - I'd love to share once I get it to work! This is just a test VI to see if I can get anything from the lidar. So far it only returns 0 on every read - the status register and the distance register.

The other strange thing - if I connect it to the I2C pins on a NavX-MXP it locks the NavX up! Something really odd going on ... .. .



/greg
Attached Files
File Type: pdf Labview Document.pdf (27.5 KB, 57 views)

Last edited by GGorman : 11-10-2015 at 16:02. Reason: added picture
Reply With Quote