Go to Post Has anybody seen our programmer? He was last sighted walking southbound in the rain, his laptop tucked under his arm, grumbling to himself. - Taylor [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 05-02-2016, 08:08
Cinnamon Toast's Avatar
Cinnamon Toast Cinnamon Toast is offline
Registered User
FRC #3641 (The Flying Toasters)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Michigan
Posts: 32
Cinnamon Toast is an unknown quantity at this point
UDP Vision data killing our SmartDashboard?

Hello everyone,

So last week we got vision tracking working on a raspberry pi, and we're using UDP to send the data over to the roborio for vision targeting. So far everything works great. Values are being sent and received, and the robot can rotate to adjust for aiming on it's own. The only problem is that all of the sudden my SmartDashboard write outs are not showing up anymore. I had a field writing out my rotation from a navxMXP gyro as well as one for a magnetic encoder. Those don't update anymore. Anyone want to take a crack at this? Here is our code.

-Cinnamon Toast
Reply With Quote
  #2   Spotlight this post!  
Unread 05-02-2016, 10:27
orangelight's Avatar
orangelight orangelight is offline
Registered User
AKA: Alex
FRC #0548 (Robostangs)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2014
Location: Northville
Posts: 168
orangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to beholdorangelight is a splendid one to behold
Re: UDP Vision data killing our SmartDashboard?

The method that sends the data is commented out in Robot.java
__________________


Reply With Quote
  #3   Spotlight this post!  
Unread 05-02-2016, 12:01
Cinnamon Toast's Avatar
Cinnamon Toast Cinnamon Toast is offline
Registered User
FRC #3641 (The Flying Toasters)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Michigan
Posts: 32
Cinnamon Toast is an unknown quantity at this point
Re: UDP Vision data killing our SmartDashboard?

Wow didn't catch that. From what I recall though, we did that for other purposes and they still weren't sending out values even when they were un commented. I'll re deploy and let you know if the problems persist.
Reply With Quote
  #4   Spotlight this post!  
Unread 05-02-2016, 12:31
Cinnamon Toast's Avatar
Cinnamon Toast Cinnamon Toast is offline
Registered User
FRC #3641 (The Flying Toasters)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Michigan
Posts: 32
Cinnamon Toast is an unknown quantity at this point
Re: UDP Vision data killing our SmartDashboard?

Sorry for wasting your time on that one. I commented those lines out originally just because they weren't being used and they worn't working when we had buggy UDP code. Now that the UDP isn't working, it's not stalling teleop like it was before. Thanks for catching my stupid mistake!
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 12:37.

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