|
Re: Custom Driver station app for classmate
We created a very nice (but still in testing) Dashboard client (in C#.Net, on the Classmate) and a Dashboard Server (In C++, on the robot)
one of the controls it has is a data graph, and all you have to do is:
(on Classmate)
Create new Project in Visual Studio
Reference the Dashboard DLL
Drag and Drop a DataGraph Control onto the form
Drag and Drop a DashboardDataHub onto the Form
go into the constructor of the form, or a button click, and type
DashboardDataHub1.AddControl(DataHub1);
DashboardDataHub1.StartMonitoring();
(On C++ Robot)
Type in constructor
ZDashboard dash = ZDashboard();
Type in main loop
dash.Add("grph",stick.GetY());
dash.Send();
I don't have the code with me now, but I can get it on tuesday if you are interested. Porting the robot code to Java would be very easy, so you can use Java too.
__________________
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 & helping on WPILib
|