View Single Post
  #2   Spotlight this post!  
Unread 25-01-2015, 20:30
cad321 cad321 is online now
Jack of all trades, Master of none
AKA: Brian Wagg
FRC #2386 (Trojans)
Team Role: Alumni
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Burlington, Ontario
Posts: 328
cad321 is just really nicecad321 is just really nicecad321 is just really nicecad321 is just really nice
Re: How send ultrasonic sensor data to driver station?

Although Im not familiar with python, in Java you would do this:

Code:
distance = Ultrasonic.getRangeInches();
        
SmartDashboard.putNumber("UltraSonic Distance", distance);
however you might be better off (if you can) making to have some LED's turn a certain colour on your robot when you are on target. Perhaps red for really far, yellow for partially on target and green for on target. This would allow the driver to keep his eyes on the robot apposed to him having to look down at the driver station constantly to see how far he is from the tote.