Go to Post Call it confidence, call it ego, call it what you want, but the fact of the matter is you need to be humble or someone will humble you. - Dan Richardson [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 08-02-2015, 16:34
Light Boko Light Boko is offline
Registered User
FRC #2557
 
Join Date: Feb 2015
Location: Tacoma, WA
Posts: 1
Light Boko is an unknown quantity at this point
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!
Reply With Quote
  #2   Spotlight this post!  
Unread 08-02-2015, 21:11
nickmcski nickmcski is offline
Registered User
AKA: Nicholas McCurry
FRC #1482 (Grandin Ghosts)
Team Role: Alumni
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Canada
Posts: 112
nickmcski has a spectacular aura aboutnickmcski has a spectacular aura aboutnickmcski has a spectacular aura about
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.
Reply With Quote
  #3   Spotlight this post!  
Unread 09-02-2015, 15:21
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,654
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
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.
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
Reply With Quote
  #4   Spotlight this post!  
Unread 09-02-2015, 19:30
Fauge7 Fauge7 is offline
Head programmer
FRC #3019 (firebird robotics)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Scottsdale
Posts: 195
Fauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to all
Re: Rangefinder Radar on SmartDashboard

That's really cool! I kinda want to do that
Reply With Quote
Reply


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 11:51.

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