Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   ZomB: a C# Drag and Drop Dashboard (http://www.chiefdelphi.com/forums/showthread.php?t=82612)

byteit101 20-03-2010 08:33

Re: ZomB: a C# Drag and Drop Dashboard
 
I have put this on WPI FIRST Forge: http://firstforge.wpi.edu/sf/projects/zombdashboard

the next version will be coming soon (need to test one feature and finish another)

byteit101 20-03-2010 19:58

Re: ZomB: a C# Drag and Drop Dashboard
 
Version 0.4 has been released on FIRST Forge: http://firstforge.wpi.edu/sf/go/page1029

byteit101 04-04-2010 12:37

Re: ZomB: a C# Drag and Drop Dashboard
 
1 Attachment(s)
ZomB Version 0.5 Released!
http://firstforge.wpi.edu/sf/sfmain/....zombdashboard

This version contains numerous new features and bug fixes

Notable new features
  • BluFinger - Bluetooth file transfer
  • DashboardDataHubForm - Manages everything automatically (even Driver mode)
  • Added a Exit/Restart/Restart DS button to avoid having to log out and in again to clear FMS Locked
  • Added PercentBar
  • Added AlertBar
  • Updated Default Dashboard
    • Video recording support (right click on Camera View) (WARNING: Large files may result)
    • Updated "See Names" button to show some help
  • Updated ZomB Eye - Video Viewer

Multiple bugs were fixed, you can read the release notes at http://firstforge.wpi.edu/sf/wiki/do...eleaseNotes0.5

Download

Everything - http://firstforge.wpi.edu/sf/frs/do/...able.v0_5?dl=1
Just ZomB Dashboard - http://firstforge.wpi.edu/sf/frs/do/...5/frs1115?dl=1
C++ Bindings - http://firstforge.wpi.edu/sf/frs/do/...5/frs1117?dl=1
Java Bindings - http://firstforge.wpi.edu/sf/frs/do/...5/frs1116?dl=1


Need Help?

Post on First Forge or here if you need help setting ZomB up, or you are having troubles with it. I will try to answer all questions as soon as possible

http://firstforge.wpi.edu/sf/discuss...iscussion.help

Robototes2412 08-04-2010 23:01

Re: ZomB: a C# Drag and Drop Dashboard
 
just to check, you can use ZomB with just m$ C# express 2008?

Damaku250 09-04-2010 15:56

Re: ZomB: a C# Drag and Drop Dashboard
 
Posting from a teammate's account here...

Anyway, I'm trying to use zomB, but I can't get the default zomB dashboard to update at all. For testing purposes I'm just trying to feed a value of 0.5 to grph and -0.5 to grph2 and nothing is coming up. I'm using Java. Yes, I've declared and instantiated a ZDashboard object (named zomB), and the zomB.Add()s and .Send() are in the teleop loop method. The dashboard is set to our team number and the driverstation is of course properly configured for our team.

byteit101 09-04-2010 20:18

Re: ZomB: a C# Drag and Drop Dashboard
 
Quote:

Originally Posted by Robototes2412 (Post 950543)
just to check, you can use ZomB with just m$ C# express 2008?

currently 2008 (Express and Pro) it is the only supported dev Enviroment (2010 should work though, as well as MonoDevelop. it DOES NOT work on Mac or linux though)

Quote:

Originally Posted by Damaku250 (Post 950972)
Posting from a teammate's account here...

Anyway, I'm trying to use zomB, but I can't get the default zomB dashboard to update at all. For testing purposes I'm just trying to feed a value of 0.5 to grph and -0.5 to grph2 and nothing is coming up. I'm using Java. Yes, I've declared and instantiated a ZDashboard object (named zomB), and the zomB.Add()s and .Send() are in the teleop loop method. The dashboard is set to our team number and the driverstation is of course properly configured for our team.

I won't have access to a robot for a while, so this could be hard.
the team number box on the dashboard is for the camera (so it shouldn't have any affect)

are you running ZomB on the classmate (if so what account) or on a remote computer?
your code looks like this correct?
Code:

void operatorControl()
{
//code
while (istelop)
{
//code
zomB.Add("grph", 0.55);//0.5 is on a line, 0.55 is above a line
zomB.Add("grph2", -0.5);
zomB.Send();
//code
}//end of while
}//end of operatorControl


Azores 09-04-2010 22:21

Re: ZomB: a C# Drag and Drop Dashboard
 
Well, rather than being a while loop for teleop, it's a method named teleperiodic that is looped while the DS is in teleop mode. Should be the same, right? Other than that the code does look the same.

And yes, it's on the Classmate. As for the 0.5 value being on a line, I also tried feeding the left joystick's Y value to the graph, and nothing showed up either when I tested that.

byteit101 10-04-2010 10:09

Re: ZomB: a C# Drag and Drop Dashboard
 
Quote:

Originally Posted by Azores (Post 951322)
Well, rather than being a while loop for teleop, it's a method named teleperiodic that is looped while the DS is in teleop mode. Should be the same, right? Other than that the code does look the same.

should work
Quote:

Originally Posted by Azores (Post 951322)
And yes, it's on the Classmate. As for the 0.5 value being on a line, I also tried feeding the left joystick's Y value to the graph, and nothing showed up either when I tested that.

In the DS, do you have the local Dashboard button checked? (under setup)

Azores 10-04-2010 12:28

Re: ZomB: a C# Drag and Drop Dashboard
 
Yes, local dashboard is checked.

byteit101 10-04-2010 13:28

Re: ZomB: a C# Drag and Drop Dashboard
 
1 Attachment(s)
Hmm, try the attached (put it all in C:\Program files\FRC Dashboard), and hit the start button near the bottom right.
also, try sending the string value (zomB.Add("grph", "0.5");)
if that does not work, download and install Visual Studio C# express 2008 from (http://www.microsoft.com/express/Dow...2008-Visual-CS)

Azores 10-04-2010 16:49

Re: ZomB: a C# Drag and Drop Dashboard
 
Still nothing on the graphs. I also tried using sw1 and sw2 and they aren't responding either. Visual Studio is installing right now.

byteit101 10-04-2010 17:54

Re: ZomB: a C# Drag and Drop Dashboard
 
Ok, while you're at it, install wireshark (http://www.wireshark.org/download.html), and make sure that the packets have the right data:
(do this while the robot is running, and sending "data")
open wireshark
go to Capture>Interfaces...
select your interface (wait to see the one that has incoming packets) by hitting the start next to it
in the Filter text box enter udp.dstport == 1165 and click apply
after some packets have come in, click one, and make sure it contains (look at the bottom box) @@@451:|grph=0.5|... (or something similar)
if you see this, you are good, and can close wireshark. if not, report back (and you can close wireshark for the moment)

Azores 10-04-2010 18:50

Re: ZomB: a C# Drag and Drop Dashboard
 
I'll see what I can do, but we had to pack up everything we could today for the trip down to Atlanta. I might be able to unbox the electrical board on Monday and work on it for a while though. Otherwise I'll have to try this in the pits on Wednesday...

byteit101 13-04-2010 17:33

Re: ZomB: a C# Drag and Drop Dashboard
 
actually, I might have just found the problem.
the first thing I want you to do is open ZDashboard.java, and find the line (near the bottom) that says dash.addString(prints + ":451@@@");
add dash.commit(); just after that. the end of the file will look like this:
Code:

...

  public  void var(String name, double value) {
        AddDebugVariable(name, String.valueOf(value));
    }

  public  void Send() {
        dash.addString(prints + ":451@@@");
        dash.commit();//Add this line
        prints = "@@@451:|";
    }
}

once you add this, recompile, redownload, and re-test. If it does not work, do what I said above (with wireshark)

byteit101 18-04-2010 15:34

Re: ZomB: a C# Drag and Drop Dashboard
 
@Azores: did you try it? did it work?


All times are GMT -5. The time now is 21:33.

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