|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Award Winning SmartDashboard extension
The RobotWidget is an award-winning extension to the 2012 SmartDashboard (Team 2423 won the Innovation in Controls award at the Boston Regional, and this was cited as a key component of that). It is based in part off of the SendablePIDController and Image widgets that come with the SmartDashboard.
On our robot, this widget shows a picture of the robot, and when the ball sensors on our robot senses a ball it tells the widget to display a picture of a basketball on the appropriate place in our robot. How it actually works is quite simple:
Currently, this widget is very specific to our robot, but I plan to generalize it at some point and submit it to the SmartDashboard project to be included with the default SmartDashboard. Feel free to use and modify this as you wish subject to the terms in LICENSE, just be sure to give our team credit! The included images were created by Linda Donoghue. Download source code here: http://www.virtualroadside.com/FRC/#RobotWidget |
|
#2
|
||||
|
||||
|
Re: Award Winning SmartDashboard extension
Nice! How resource-intensive is this widget? Did it cause any noticeable lag on your Driver Station during operation?
|
|
#3
|
||||
|
||||
|
Re: Award Winning SmartDashboard extension
If you examine the code, the widget doesn't really *do* all that much, it just waits for input and then draws the appropriate images -- which is a decidely low resource operation on a modern computer. I would imagine resource usage is similar to other widgets on the SmartDashboard.
|
|
#4
|
|||
|
|||
|
Re: Award Winning SmartDashboard extension
Exactly what sensors are you using to register presence of the ball at each location?
|
|
#5
|
||||
|
||||
|
Re: Award Winning SmartDashboard extension
On our robot during the competition, we were using 2 IR sensors (Sharp GP2D120) and a limit switch. However, we found that the limit switch kept getting stuck on the balls, so we bought some more of the IR sensors that we will be using on the robot in offseason competitions.
One thing to beware of with the IR sensors is that the case is conductive and connected to ground, so we didn't pass inspection initially until we isolated its case from the chassis. But other than that, we've had really good results with them. |
|
#6
|
||||
|
||||
|
Cool idea - we thought about it, but you did the actual work!
Do you have a demonstration of the dashboard in action - perhaps a video? |
|
#7
|
||||
|
||||
|
Re: Award Winning SmartDashboard extension
It was maybe two hours of work, pretty trivial to do.
However, I do not currently have a video, perhaps we'll take one before Beantown Blitz. |
|
#8
|
|||||
|
|||||
|
Re: Award Winning SmartDashboard extension
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|