Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Rangefinder Radar on SmartDashboard (http://www.chiefdelphi.com/forums/showthread.php?t=134204)

Light Boko 08-02-2015 16:34

Rangefinder Radar on SmartDashboard
 
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

Re: Rangefinder Radar on SmartDashboard
 
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.

GeeTwo 09-02-2015 15:21

Re: Rangefinder Radar on SmartDashboard
 
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.

Fauge7 09-02-2015 19:30

Re: Rangefinder Radar on SmartDashboard
 
That's really cool! I kinda want to do that


All times are GMT -5. The time now is 22:25.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi