|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Can't see any values on dashboard
I can download code, and it runs no problem, but I cannot get the dashboard to show any response what so every. The PWM values don't change when the motors are running, the gyro I hooked up showed no change on the analogue bumper. Is there something I have to do beyond feeding watchdog and checking the module?
|
|
#2
|
|||||
|
|||||
|
Re: Can't see any values on dashboard
You didn't mention the compass, so you appear to have the preloaded dashboard, not the updated one. The Driver Station update doesn't do a good job of replacing some files, and the dashboard is one of them.
Run the Driver Station update twice. The first time, tell it to uninstall. The second time, install normally. Then things should work as intended. |
|
#3
|
|||
|
|||
|
Re: Can't see any values on dashboard
If you are using C++, the default Dashboard that comes on the Classmate driver station does not get updated automatically. Your program has to specifically prepare and send data to it.
See the example 2010 Vision Demo program, and study in particular how the dashboard data is packed into data "clusters" and sent to the driver's station for display on the dashboard. It sends data in two clusters: vision data, and I/O data. With some more work, you can modify the structure of these data clusters and the dashboard program in order to display your own set of custom data. HTH. |
|
#4
|
||||
|
||||
|
Re: Can't see any values on dashboard
We also had this problem and learned the hard way that the code in the Dashboard examples has the code commented out that will update the dashboard with the cRIO data. You will need to uncomment that code before you get any data after you take the advice from the post above.
|
|
#5
|
|||
|
|||
|
Re: Can't see any values on dashboard
Hello, I am also having a hard time getting our Dashboard to display this data, even adding the code that supposedly does this. I am pretty new to programming for in C++ and for FRC, although I am somewhat familiar with programing practices in general, such and calling classes and the like.
We want to return PWM values but also Sensor values such as encoders and others. The only data that the dashboard returns for us is the battery voltage. |
|
#6
|
|||
|
|||
|
Re: Can't see any values on dashboard
Quote:
Are you modifying the Dashboard application? Have you removed all of the unused data fields and added the ones you are interested in? Remember that the data format must match on the robot and in the dashboard or the dashboard will fail to unflatten the string. |
|
#7
|
|||
|
|||
|
Re: Can't see any values on dashboard
Quote:
I am working with the default code SimpleTemplate except that it has been switched for Tank Drive, the amount of time moving forward in Autonomous has been changed, and I have declared and initalized the Encoders and #include "DashboardDataFormat.h" . There has been no change to the DashboardDataFormat.h or .cpp, and yes I have copied them into the directory of the project. Also, I just mentioned the battery voltage because I have read posts about teams not receiving this reading. |
|
#8
|
||||
|
||||
|
Re: Can't see any values on dashboard
Quote:
Quote:
Quote:
Quote:
Start simple. Remove everything from the dashboard data on both the robot and on the dashboard. Add one INT32 to the robot code and to the dashboard... make sure that works, then add in any other data you want to display on the dashboard. |
|
#9
|
|||
|
|||
|
Re: Can't see any values on dashboard
Quote:
Quote:
Quote:
|
|
#10
|
|||
|
|||
|
Re: Can't see any values on dashboard
The dashboard application is a LabVIEW program that runs on the classmate (or some other machine, and you can write a new one from scratch in any language you prefer). From the LabVIEW getting started screen, one of the options under New is to create a "FRC Dashboard Project". This will create a new project that has all the framework you need to implement the dashboard. On the left side of the diagram, it has a "cluster" defined (same as a struct in C) with all the data that it will parse... one for high priority and one for low priority. You will notice that this set of data matches that in the DashboardDataFormat.cpp.
Both. You should change the format of the structure to include the data that you are interested in displaying. The structure has to be the same on the dashboard and the robot code. |
|
#11
|
|||
|
|||
|
Re: Can't see any values on dashboard
Quote:
|
|
#12
|
|||
|
|||
|
Re: Can't see any values on dashboard
Quote:
Code:
double position4x, position2x, position1x; DigitalInput qA(5); // Digital I/O 5 on slot 4 DigitalInput qB(6); // Digital I/O 6 on slot 4 Encoder encoder4X(qA, qB, true); Encoder encoder2X(qA, qB, true, Encoder::k2X); Encoder encoder1X(qA, qB, true, Encoder::k1X); // 6 inch wheel (pi*d) is 18.85 inch circumference; 24:40 tooth sprockets; 250 pulses per rev. encoder4X.SetDistancePerPulse(18.85 * 0.6 / 250.0); encoder2X.SetDistancePerPulse(18.85 * 0.6 / 250.0); encoder1X.SetDistancePerPulse(18.85 * 0.6 / 250.0); Jaguar rightMotor(2); rightMotor.Set(-1.0); Wait(2.0); // wait for motor to get up to speed encoder4X.Reset(); encoder2X.Reset(); encoder1X.Reset(); encoder4X.Start(); // start counting encoder2X.Start(); encoder1X.Start(); Wait(5.0); // wait for some distance to be covered position4x = encoder4X.GetDistance(); // get position in inches position2x = encoder2X.GetDistance(); position1x = encoder1X.GetDistance(); -Joe Last edited by jhersh : 03-02-2010 at 14:46. Reason: Make it a bit more interesting... |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| LabVIEW Video Tutorial: Customizing The FRC Dashboard To See Your Data | LVMastery | NI LabVIEW | 0 | 10-02-2009 13:50 |
| Dashboard View of Pan and Tilt Servo Values | JoeXIII'007 | Programming | 1 | 02-02-2005 22:34 |
| Bug? Can't seem to delete any of my PMs | DanL | CD Forum Support | 2 | 15-12-2003 23:12 |
| You can't see through an untouched starting wall of boxes | Digo | General Forum | 31 | 11-01-2003 12:01 |