View Full Version : Rangefinder Radar on SmartDashboard
Light Boko
08-02-2015, 16:34
I have been trying to create a radar-type graph on my team's smart dashboard. What I want it to do is, since our rangefinders are on 180 degree servos, is to have a line plot that instead of using time, it uses values 0 - 180, that would print to the graph based on the current angle our servo is on. I want it to go back and forth(whenever it reaches 180 it goes into reverse back to 0, and vice-versa) and wipe the angles previous data. If anyone could help me find out how to do this, it would be very much appreciated. Thanks!
nickmcski
08-02-2015, 21:11
You can try making your own control in the new smart dashboard using this guide. The guide itself is for a different kind of object but the concept should apply to what your trying to do.
I haven't looked at the SmartDashboard graphs, but in other IDEs I've been able to "wrap" angles and not get a vertical connection by including a point with a "NaN" in the data stream after the last one at one end and before the first one at the new end.
That's really cool! I kinda want to do that
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.