Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Simple Custom Video Dashboard 30+ FPS (http://www.chiefdelphi.com/forums/showthread.php?t=82422)

TheDominis 11-02-2010 18:06

Simple Custom Video Dashboard 30+ FPS
 
2 Attachment(s)
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.

PranavSathy 12-02-2010 06:17

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 :D.

TheDominis 12-02-2010 07:17

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.

PranavSathy 12-02-2010 16:44

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.

TheDominis 12-02-2010 16:55

Re: Simple Custom Video Dashboard 30+ FPS
 
I know I made a UDP video server and the GDC said it was illegal.

MattD 12-02-2010 17:07

Re: Simple Custom Video Dashboard 30+ FPS
 
Quote:

Originally Posted by PranavSathy (Post 918757)
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.

Robototes2412 12-02-2010 19:06

Re: Simple Custom Video Dashboard 30+ FPS
 
Can you please post a Ubuntu-Mono friendly version?

byteit101 13-02-2010 08:04

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

GGCO 13-02-2010 08:45

Re: Simple Custom Video Dashboard 30+ FPS
 
Quote:

Originally Posted by Robototes2412 (Post 918859)
Can you please post a Ubuntu-Mono friendly version?

Seriously???

Great program! Works really well for the COMETS!

Robototes2412 13-02-2010 13:30

Re: Simple Custom Video Dashboard 30+ FPS
 
deleted

TheDominis 13-02-2010 14:42

Re: Simple Custom Video Dashboard 30+ FPS
 
Quote:

Originally Posted by byteit101 (Post 919125)
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.

PranavSathy 13-02-2010 18:15

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 :D.

Robototes2412 13-02-2010 18:40

Re: Simple Custom Video Dashboard 30+ FPS
 
can you please post a version that is compatible with mono?

byteit101 13-02-2010 18:55

Re: Simple Custom Video Dashboard 30+ FPS
 
Quote:

Originally Posted by Robototes2412 (Post 919523)
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

TheDominis 13-02-2010 21:20

Re: Simple Custom Video Dashboard 30+ FPS
 
2 Attachment(s)
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.


All times are GMT -5. The time now is 01:58.

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