Go to Post Bottom line - keep your passion for FIRST and don't let others spoil your fun! - Sean Schuff [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
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 31-01-2012, 18:33
Redstone's Avatar
Redstone Redstone is offline
Me gusta java
AKA: Ben Beals
FRC #4043 (Nerd Herd)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: McMinnville, Oregon
Posts: 22
Redstone is an unknown quantity at this point
MaxSonar range

What is the syntax to get a range from our MaxSonar sensor and how do we access the analog inputs?
Reply With Quote
  #2   Spotlight this post!  
Unread 31-01-2012, 22:34
shuhao shuhao is offline
Registered User
FRC #4069 (Lo-Ellen Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Sudbury
Posts: 138
shuhao is an unknown quantity at this point
Re: MaxSonar range

I'm currently using AnalogChannel

Can't seem to get it to stay accurate (it is for a while.. then just gives me false readings)
Reply With Quote
  #3   Spotlight this post!  
Unread 01-02-2012, 13:03
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: MaxSonar range

AnalogChannel objects provide the way to access the analog input channel. Create one on the specified channel number, and then call the GetVoltage() method or something similar to read the voltage on the channel
__________________
Attending: MN Duluth Regional
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 09:49.

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