Go to Post Please, if you don't actually know what you're talking about, don't offer safety advice on the subject. - CENTURION [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Events   CD-Media   CD-Spy   FRC-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-11-2010, 05:06 PM
TheDominis TheDominis is offline
Registered User
FRC #2152
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Port Orange, Florida
Posts: 88
TheDominis has a spectacular aura aboutTheDominis has a spectacular aura about
Simple Custom Video Dashboard 30+ FPS

I've made a dashboard in C# that uses the stock camera code. I get 30 FPS with their newest code.

I've attached the executable and source code.

Requirements

.NET 4.0 Framework

How To Use
Set the drop down list to Tcp as that is currently the only supported format.
Set the text box with "Robot IP Goes Here" to your robot's IP.

Notes
It will take about three seconds to show video.
Attached Files
File Type: zip SmashTcpDashboard-binary.zip (9.0 KB, 135 views)
File Type: zip SmashTcpDashboard-source.zip (69.8 KB, 142 views)
  #2   Spotlight this post!  
Unread 02-12-2010, 05:17 AM
PranavSathy PranavSathy is offline
Team Captain
AKA: Pranav Sathyanarayanan
FRC #0263 (Sachem Aftershock)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Holbrook, New York
Posts: 27
PranavSathy is an unknown quantity at this point
Send a message via Skype™ to PranavSathy
Re: Simple Custom Video Dashboard 30+ FPS

Thank you very much, that code was very useful, but just a few questions, first, why would you use XAML and not a regular windows form, second what is the reason for 2 classes, you can just put the content of Reciever in TcpListener and just use the thread within TcpListener itself.

I hope you dont mind if I use your code in my own program with many modifications , I willll be sure to release it with credit .
  #3   Spotlight this post!  
Unread 02-12-2010, 06:17 AM
TheDominis TheDominis is offline
Registered User
FRC #2152
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Port Orange, Florida
Posts: 88
TheDominis has a spectacular aura aboutTheDominis has a spectacular aura about
Re: Simple Custom Video Dashboard 30+ FPS

I'm using Wpf which requires Xaml. Wpf is supposed to be hardware accelerated by direct 2D.

I split up the recievers because I also had a Udp receiver and I still may add that.
  #4   Spotlight this post!  
Unread 02-12-2010, 03:44 PM
PranavSathy PranavSathy is offline
Team Captain
AKA: Pranav Sathyanarayanan
FRC #0263 (Sachem Aftershock)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Holbrook, New York
Posts: 27
PranavSathy is an unknown quantity at this point
Send a message via Skype™ to PranavSathy
Re: Simple Custom Video Dashboard 30+ FPS

Thanks for the reply, I dont think you want to add a UDP reciever because UDP is prohibited during matches, the block the network (UDP network), or atleast I heard so. They use UDP to switch Autonomous from OperatorControl and so they dont want any UDP traffic other than their own.
  #5   Spotlight this post!  
Unread 02-12-2010, 03:55 PM
TheDominis TheDominis is offline
Registered User
FRC #2152
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Port Orange, Florida
Posts: 88
TheDominis has a spectacular aura aboutTheDominis has a spectacular aura about
Re: Simple Custom Video Dashboard 30+ FPS

I know I made a UDP video server and the GDC said it was illegal.
  #6   Spotlight this post!  
Unread 02-12-2010, 04:07 PM
MattD's Avatar
MattD MattD is offline
Registered User
AKA: Matthew Douglas
FRC #0228 (GUS Robotics)
Team Role: Alumni
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Indianapolis, IN
Posts: 185
MattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to behold
Send a message via AIM to MattD
Re: Simple Custom Video Dashboard 30+ FPS

Quote:
Originally Posted by PranavSathy View Post
Thanks for the reply, I dont think you want to add a UDP reciever because UDP is prohibited during matches, the block the network (UDP network), or atleast I heard so. They use UDP to switch Autonomous from OperatorControl and so they dont want any UDP traffic other than their own.
It's still useful if you want to read userdata sent from the cRIO to a custom dashboard. That data is sent over UDP as part of the "official" communications protocol.
__________________
GUS Robotics Team 228

2010 WPI Engineering Inspiration Award
2010 WPI Regional Champions (Thanks 230 & 20!)
2010 CT VEX Champions
2010 CT VEX Innovate Award
2009 QCC VEX Champions
2009 CT Motorola Quality Award
2007 CT J&J Sportsmanship Award
2006 CT Best Website Award
  #7   Spotlight this post!  
Unread 02-12-2010, 06:06 PM
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
Re: Simple Custom Video Dashboard 30+ FPS

Can you please post a Ubuntu-Mono friendly version?
  #8   Spotlight this post!  
Unread 02-13-2010, 07:04 AM
byteit101's Avatar
byteit101 byteit101 is offline
Registered Code Monkey (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Sylvania
Posts: 661
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Simple Custom Video Dashboard 30+ FPS

why it is using .Net 4? I like to try to make my programs use .net 2 for greatest compatibility. You can use 3.0 for WPF
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI
  #9   Spotlight this post!  
Unread 02-13-2010, 07:45 AM
GGCO's Avatar
GGCO GGCO is offline
Registered User
AKA: Grant
FRC #3357
Team Role: Alumni
 
Join Date: Jan 2008
Rookie Year: 2004
Location: Michigan
Posts: 406
GGCO is a splendid one to beholdGGCO is a splendid one to beholdGGCO is a splendid one to beholdGGCO is a splendid one to beholdGGCO is a splendid one to beholdGGCO is a splendid one to beholdGGCO is a splendid one to beholdGGCO is a splendid one to behold
Send a message via AIM to GGCO
Re: Simple Custom Video Dashboard 30+ FPS

Quote:
Originally Posted by Robototes2412 View Post
Can you please post a Ubuntu-Mono friendly version?
Seriously???

Great program! Works really well for the COMETS!
__________________
"Great spirits have always encountered violent opposition from mediocre minds" - Albert Einstein
The FIRST Alliance
COMETS Robotics
Website

  #10   Spotlight this post!  
Unread 02-13-2010, 12:30 PM
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
Re: Simple Custom Video Dashboard 30+ FPS

deleted

Last edited by Robototes2412 : 02-13-2010 at 12:51 PM.
  #11   Spotlight this post!  
Unread 02-13-2010, 01:42 PM
TheDominis TheDominis is offline
Registered User
FRC #2152
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Port Orange, Florida
Posts: 88
TheDominis has a spectacular aura aboutTheDominis has a spectacular aura about
Re: Simple Custom Video Dashboard 30+ FPS

Quote:
Originally Posted by byteit101 View Post
why it is using .Net 4? I like to try to make my programs use .net 2 for greatest compatibility. You can use 3.0 for WPF
I don't know what version of .NET the computer came with so I installed 4.0. I believe that the computer I tested it on only has 3.5, but I am not sure.
  #12   Spotlight this post!  
Unread 02-13-2010, 05:15 PM
PranavSathy PranavSathy is offline
Team Captain
AKA: Pranav Sathyanarayanan
FRC #0263 (Sachem Aftershock)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Holbrook, New York
Posts: 27
PranavSathy is an unknown quantity at this point
Send a message via Skype™ to PranavSathy
Re: Simple Custom Video Dashboard 30+ FPS

He is probably using Visual Studio 2010 like me, its default configuration is to make .NET 4.0 applications, but there is an option during the Project Wizard on which .NET to use, as low as 2.0 or 1.0 I believe, but I forget .
  #13   Spotlight this post!  
Unread 02-13-2010, 05:40 PM
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
Re: Simple Custom Video Dashboard 30+ FPS

can you please post a version that is compatible with mono?
  #14   Spotlight this post!  
Unread 02-13-2010, 05:55 PM
byteit101's Avatar
byteit101 byteit101 is offline
Registered Code Monkey (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Sylvania
Posts: 661
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Simple Custom Video Dashboard 30+ FPS

Quote:
Originally Posted by Robototes2412 View Post
can you please post a version that is compatible with mono?
although I applaud your open-sourceness, Mono has no (current) desire to implement WPF (http://mono-project.com/WPF), so you would have to do a lot of work
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI
  #15   Spotlight this post!  
Unread 02-13-2010, 08:20 PM
TheDominis TheDominis is offline
Registered User
FRC #2152
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Port Orange, Florida
Posts: 88
TheDominis has a spectacular aura aboutTheDominis has a spectacular aura about
Re: Simple Custom Video Dashboard 30+ FPS

I've commented the code. I'm just slightly confused as to why you want to run it on Ubuntu especially since we all got tiny little 2Go computers with XP.
Attached Files
File Type: zip SmashTcpDashboard-binary.zip (9.1 KB, 45 views)
File Type: zip SmashTcpDashboard-source.zip (45.1 KB, 65 views)
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set up custom dashboard for auto start Kevka Programming 11 01-28-2010 05:46 PM
Custom Dashboard writchie FRC Control System 7 03-02-2009 07:21 PM
Custom Dashboard - Visual Basic Mike Lat Programming 3 01-23-2005 01:26 PM
Custom Dashboard Executable ready for Download! archiver 2001 1 06-24-2002 12:01 AM
Custom dashboard program available. Interest? archiver 2001 4 06-23-2002 11:45 PM


All times are GMT -5. The time now is 06:28 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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