OCCRA
Go to Post Success is inspiring high schoolers to get real world experiance through internships with their sponsors. - Pamela [more]
Home
Go Back   Chief Delphi > Technical > Sensors
CD-Media  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-05-2018, 09:34 AM
jimfl014 jimfl014 is offline
Registered User
FRC #5000 (HammerHeads)
Team Role: Mentor
 
Join Date: Oct 2016
Rookie Year: 2013
Location: Hingham, MA
Posts: 14
jimfl014 is an unknown quantity at this point
Rev Robotics 2m Sensor

Has anyone had any experience with this distance sensor? Although this sensor is inexpensive, for us it might be technically expensive as the API is C only and we are a Java shop.
Reply With Quote
  #2   Spotlight this post!  
Unread 12-05-2018, 10:17 AM
tjf tjf is offline
Registered User
AKA: Tim Flynn
FRC #1257 (Parallel Universe), #1228 (RoboTribe)
Team Role: Mentor
 
Join Date: Jun 2016
Rookie Year: 2016
Location: Union County
Posts: 429
tjf has a reputation beyond reputetjf has a reputation beyond reputetjf has a reputation beyond reputetjf has a reputation beyond reputetjf has a reputation beyond reputetjf has a reputation beyond reputetjf has a reputation beyond reputetjf has a reputation beyond reputetjf has a reputation beyond reputetjf has a reputation beyond reputetjf has a reputation beyond repute
Re: Rev Robotics 2m Sensor

If you're indeed referring to the "2m Distance Sensor", it should work essentially regardless of language. WPILib has built-in functionality to read i2c devices off of the RoboRIO's i2c bus, even if a base-library REV made for convenience isn't available (not that I'm aware of any existing). You'd just need to use the address REV lists on the product page, being 0x52.
__________________

1257 (2016) - Student
1257 (2017-Present) - Overactive Alumnus | 1228 (2017-Present) - I do stuff
KD2KRT
Papers: Encyclopedia Robotica v2 | An FRC Anthology
Reply With Quote
  #3   Spotlight this post!  
Unread 12-05-2018, 02:42 PM
jimfl014 jimfl014 is offline
Registered User
FRC #5000 (HammerHeads)
Team Role: Mentor
 
Join Date: Oct 2016
Rookie Year: 2013
Location: Hingham, MA
Posts: 14
jimfl014 is an unknown quantity at this point
Re: Rev Robotics 2m Sensor

Thanks! We'll order one and try it out on our test robot.
Reply With Quote
  #4   Spotlight this post!  
Unread 12-05-2018, 04:42 PM
dyanoshak dyanoshak is offline
Registered User
AKA: David Yanoshak
FRC #2158 (ausTIN CANs)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Austin, TX
Posts: 205
dyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond repute
Re: Rev Robotics 2m Sensor

Quote:
Originally Posted by jimfl014 View Post
Has anyone had any experience with this distance sensor? Although this sensor is inexpensive, for us it might be technically expensive as the API is C only and we are a Java shop.
Quote:
Originally Posted by tjf View Post
You'd just need to use the address REV lists on the product page, being 0x52.
The C API is provided by ST, the sensor chip's manufacturer. In FTC, this API is simplified and ported into the Java SDK by the FTC developers. Using this sensor in FRC would require porting the library to Java, LabVIEW, or C++. We do not have ported FRC libraries at this time, but here are some resources that can get you started:
For the FTC SDK, you would need to unpack the Hardware-release-sources.jar file. You will find the sensor related Java file in the following path:
ftc_app\libs\Hardware-release-sources.jar\com\qualcomm\hardware\stmicroelectroni cs\

An alternative to connecting the sensor directly to the roboRIO and porting the libraries would be to use the sensor with a co-processor, like an Arduino, and use the libraries that already exist.
__________________
David Yanoshak
Co-founder REV Robotics | www.revrobotics.com

Last edited by dyanoshak : 12-05-2018 at 05:54 PM. Reason: wording
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 04:19 PM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi