Go to Post If this truly bothers you, you should do something CONSTRUCTIVE about it instead of whining about it - Jaine Perotti [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Spotlight this post!  
Unread 30-01-2016, 12:15
team-4480's Avatar
team-4480 team-4480 is offline
Debug? What's that?
FRC #4480
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Minnesooota
Posts: 229
team-4480 will become famous soon enoughteam-4480 will become famous soon enough
Re: Maxbotix not working well with RoboRIO?

Quote:
Originally Posted by jajabinx124 View Post
Post some code?

You can find the actual range limit and the width of the ultrasonic soundwaves when you look at the data sheet for the sensor.
The code is as simple as it comes:

Code:
#in init code
ultrasonic = wpilib.analog.input(3)
#in teleop
print(ultrasonic.getValue())
I see on the datasheet that it is supposed to be able to output 0 to 1023 for analog, but since I get nothing close to that, does that mean my sensor has gone bad or something? Thanks!
 


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 20:03.

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