Go to Post That'll teach me to send anyone for a tool. - Rich Kressly [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 08-02-2012, 20:34
agartner01 agartner01 is offline
Captain + Control Sys & Design
FRC #4174
Team Role: Engineer
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Hector MN
Posts: 109
agartner01 is an unknown quantity at this point
How to hook up KOP rangefinder

Do I just hook it to the analog breakout like in this picture?

  #2   Spotlight this post!  
Unread 08-02-2012, 21:20
kinganu123 kinganu123 is offline
Registered User
FRC #1747
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Piscataway, NJ
Posts: 243
kinganu123 is on a distinguished road
Re: How to hook up KOP rangefinder

Yes
But let your programmers know that they'll have to write their own class that uses the analogchannel. This mainly pertains to java, not sure about other languages.
__________________
  #3   Spotlight this post!  
Unread 08-02-2012, 21:28
theprgramerdude theprgramerdude is offline
WPI Freshman
AKA: Alex
FRC #2503 (Warrior Robotics)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2008
Location: Brainerd, Minnesota
Posts: 347
theprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud of
Re: How to hook up KOP rangefinder

Yes, that will do it. You also don't have to write your own class, per se, as everything in java can be coded almost like in C, although it would be beneficial.
__________________
Attending: MN Duluth Regional
  #4   Spotlight this post!  
Unread 08-02-2012, 21:37
agartner01 agartner01 is offline
Captain + Control Sys & Design
FRC #4174
Team Role: Engineer
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Hector MN
Posts: 109
agartner01 is an unknown quantity at this point
Re: How to hook up KOP rangefinder

Quote:
Originally Posted by kinganu123 View Post
Yes
But let your programmers know that they'll have to write their own class that uses the analogchannel. This mainly pertains to java, not sure about other languages.
Yeah, I do both electrical and programming in our 4 person team. So something like this:

Code:
float distanceToTarget = 0.0;
...
AnalogChannel *rangefinder;
...
rangefinder = new AnalogChannel(1);
...
rangefinder->getVoltage() * multiplier = distanceToTarget;
Closed Thread


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 01:21.

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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi