Go to Post To quote Harrison Ford: "Never tell me the odds". - [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 27-03-2010, 19:13
kennypu kennypu is offline
Registered User
FRC #2467
 
Join Date: Jan 2010
Location: Hawaii
Posts: 40
kennypu is an unknown quantity at this point
need Dashboard help

Hello,
After updating all the updates for Labview and the DriverStation, our dashboard started not showing the values (for pwms, jaguars, etc.).
I assumed this is because we needed to use the DashboardDataSender class, however when I was talking to another programmer from the regionals here, he said that those values should be automatically detected and shown. I was wondering if anybody has an idea why the values are not being shown.

If you are confused, the dashboard does show; I can see the compass, indicating I have the latest version (2.08), and I can get camera feed. However, the pwms, solenoids, etc. do not change when the joystick is pressed, etc. I was wondering how this can be fixed. Thank you in advance,
Kentaro
Reply With Quote
  #2   Spotlight this post!  
Unread 27-03-2010, 19:43
Zme Zme is offline
Registered User
FRC #2619
 
Join Date: Jan 2009
Location: Michigan
Posts: 83
Zme is on a distinguished road
Re: need Dashboard help

using the dashboard data sender class isn't necessary but it can make things a lot easier.

if you do decide to use it however make sure you modify it as the original code sends junk values back (the actual code should be in the file but commented out)

declaration and usage is as follows (and assumes you have included the correct .h's)

DashboardDataSender *dds;

dds = new DashboardDataSender();

dds->sendIOPortData();


if the code was modified correctly then it will send values every time the sendIOPortData() function is called.
also by default the solenoids are not sent along because, according to the file, "// Can't read solenoids without an instance of the object", make of that what you will,

i'm assuming i understood your question correctly, if i didn't please let me know
Reply With Quote
  #3   Spotlight this post!  
Unread 27-03-2010, 20:03
kennypu kennypu is offline
Registered User
FRC #2467
 
Join Date: Jan 2010
Location: Hawaii
Posts: 40
kennypu is an unknown quantity at this point
Re: need Dashboard help

Quote:
Originally Posted by Zme View Post
using the dashboard data sender class isn't necessary but it can make things a lot easier.

if you do decide to use it however make sure you modify it as the original code sends junk values back (the actual code should be in the file but commented out)

declaration and usage is as follows (and assumes you have included the correct .h's)

DashboardDataSender *dds;

dds = new DashboardDataSender();

dds->sendIOPortData();


if the code was modified correctly then it will send values every time the sendIOPortData() function is called.
also by default the solenoids are not sent along because, according to the file, "// Can't read solenoids without an instance of the object", make of that what you will,

i'm assuming i understood your question correctly, if i didn't please let me know
I will assume you did as well . If the values are not shown by default, then the person who told me is probably wrong. So those three lines (dds->sendIOPortData() being in an infinite loop) should update the data on the dashboard? the pwms for the jaguar should be read by default correct? and I believe I just need to remove a few comment lines in the .h/.cpp? sorry for all the questions, I want to be sure.
Reply With Quote
  #4   Spotlight this post!  
Unread 27-03-2010, 20:16
Zme Zme is offline
Registered User
FRC #2619
 
Join Date: Jan 2009
Location: Michigan
Posts: 83
Zme is on a distinguished road
Re: need Dashboard help

questions are not a problem, how else would people learn?

the person that told you they are picked up by default may not of been wrong, i believe they might be in labview but i can't confirm that myself.

as for modifying the dashboard data sender file, you want to open up the .cpp file and look for the following lines

dash.AddFloat((float) i * 5.0 / 8.0);
dash.AddU16((short) 0xAAAA);
dash.AddU16((short) 0x7777);
dash.AddU8((unsigned char) (i-1) * 255 / 9);
dash.AddU8((unsigned char) i * 255 / 10);

(I think this is all of them but i'm not sure, look around, if you see anything that looks odd feel free to ask)

around these lines should be a commented out line, usually right next to it, uncomment it and comment out the current line and try that it should get you up and running
Reply With Quote
  #5   Spotlight this post!  
Unread 27-03-2010, 20:24
kennypu kennypu is offline
Registered User
FRC #2467
 
Join Date: Jan 2010
Location: Hawaii
Posts: 40
kennypu is an unknown quantity at this point
Re: need Dashboard help

Quote:
Originally Posted by Zme View Post
questions are not a problem, how else would people learn?

the person that told you they are picked up by default may not of been wrong, i believe they might be in labview but i can't confirm that myself.

as for modifying the dashboard data sender file, you want to open up the .cpp file and look for the following lines

dash.AddFloat((float) i * 5.0 / 8.0);
dash.AddU16((short) 0xAAAA);
dash.AddU16((short) 0x7777);
dash.AddU8((unsigned char) (i-1) * 255 / 9);
dash.AddU8((unsigned char) i * 255 / 10);

(I think this is all of them but i'm not sure, look around, if you see anything that looks odd feel free to ask)

around these lines should be a commented out line, usually right next to it, uncomment it and comment out the current line and try that it should get you up and running
Thank you very much for you help!! We're in the semi-finals already, and I wont be able to update the program, but we should be up and running after the regionals, Thank you x]. And FYI, he is using java, but I assumed it should be quite similar.
Reply With Quote
  #6   Spotlight this post!  
Unread 27-03-2010, 20:29
Zme Zme is offline
Registered User
FRC #2619
 
Join Date: Jan 2009
Location: Michigan
Posts: 83
Zme is on a distinguished road
Re: need Dashboard help

my pleasure, be sure to let us know how it goes

Good luck in semis/finals
Reply With Quote
  #7   Spotlight this post!  
Unread 27-03-2010, 21:01
kennypu kennypu is offline
Registered User
FRC #2467
 
Join Date: Jan 2010
Location: Hawaii
Posts: 40
kennypu is an unknown quantity at this point
Re: need Dashboard help

Quote:
Originally Posted by Zme View Post
my pleasure, be sure to let us know how it goes

Good luck in semis/finals
Thank you . we just won our semi
Reply With Quote
Reply


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
HELP!! No readouts anywhere on dashboard rsegrest Programming 8 27-01-2010 20:25
Dashboard Help C++ Windriver ranc Programming 0 15-01-2010 15:26
i need help w/ setting up a palm pilot for dashboard youngWilliam14 General Forum 12 01-04-2007 16:11
Makin' a home-brewn dashboard program, and I need theory help! DanL Programming 33 05-07-2002 01:26


All times are GMT -5. The time now is 14:02.

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


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