Go to Post But plywood is so awesome on robots...... But I guess shiny usually always wins out huh? - Jon K. [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 03-02-2010, 18:20
kennypu kennypu is offline
Registered User
FRC #2467
 
Join Date: Jan 2010
Location: Hawaii
Posts: 40
kennypu is an unknown quantity at this point
outputting data to DS's usermessage

Is there a simple way instead of doing the whole packing,etc. thing in the DS example to output text to the 'user messages' section in the DS? Can you just eg just do cout<<"hello world" or printf() to output messages? Thanks.
Reply With Quote
  #2   Spotlight this post!  
Unread 03-02-2010, 18:50
1951-44U's Avatar
1951-44U 1951-44U is offline
ROAR.
AKA: Phil Chang
FRC #0025 (Raider Robotix)
Team Role: Programmer
 
Join Date: Oct 2008
Rookie Year: 2007
Location: NBTHS
Posts: 34
1951-44U has a spectacular aura about1951-44U has a spectacular aura about1951-44U has a spectacular aura about
Re: outputting data to DS's usermessage

Look inside WPILib at the Dashboard.cpp file, especially at the function "Printf()". I think it allows you to print there, but I haven't tested it out.
Reply With Quote
  #3   Spotlight this post!  
Unread 04-02-2010, 01:47
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: outputting data to DS's usermessage

Quote:
Originally Posted by kennypu View Post
Is there a simple way instead of doing the whole packing,etc. thing in the DS example to output text to the 'user messages' section in the DS? Can you just eg just do cout<<"hello world" or printf() to output messages? Thanks.
Yes.. use the DriverStationLCD class to write to the User Messages box on the Driver Station.
Reply With Quote
  #4   Spotlight this post!  
Unread 04-02-2010, 01:48
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: outputting data to DS's usermessage

Quote:
Originally Posted by 1951-44U View Post
Look inside WPILib at the Dashboard.cpp file, especially at the function "Printf()". I think it allows you to print there, but I haven't tested it out.
That sends to the dashboard, not the driver station. Use DriverStationLCD to write to the User Messages on the Driver Station.
Reply With Quote
  #5   Spotlight this post!  
Unread 04-02-2010, 11:46
Lucie365 Lucie365 is offline
Registered User
FRC #0365
 
Join Date: Feb 2010
Location: Wilmington, DE
Posts: 13
Lucie365 has a spectacular aura aboutLucie365 has a spectacular aura about
Re: outputting data to DS's usermessage

We have been trying to output data to the driver station using DriverStationLCD and have not been successful. We are doing everything exactly like we did last year (which worked fine)--we establish a pointer and do a "Get Instance" and then use a printf statement to send the message, but nothing is appearing in the driver station message space. Is there something different this year regarding the way it works?
Reply With Quote
  #6   Spotlight this post!  
Unread 04-02-2010, 12:02
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,561
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: outputting data to DS's usermessage

Quote:
Originally Posted by Lucie365 View Post
We have been trying to output data to the driver station using DriverStationLCD and have not been successful. We are doing everything exactly like we did last year (which worked fine)--we establish a pointer and do a "Get Instance" and then use a printf statement to send the message, but nothing is appearing in the driver station message space. Is there something different this year regarding the way it works?
Are you calling update?
Reply With Quote
  #7   Spotlight this post!  
Unread 04-02-2010, 12:02
slavik262's Avatar
slavik262 slavik262 is offline
We do what we must because we can.
AKA: Matt Kline
FRC #0537 (Charger Robotics)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Sussex, WI
Posts: 310
slavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to behold
Send a message via AIM to slavik262
Re: outputting data to DS's usermessage

Wasn't the DriverStationLCD class created to print text to the actual physical screen of the Driver Station last year?

To my knowledge, you print strings to the User Messages region in the dashbard using the Dashboard class.
__________________
Reply With Quote
  #8   Spotlight this post!  
Unread 04-02-2010, 13:03
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: outputting data to DS's usermessage

Quote:
Originally Posted by slavik262 View Post
Wasn't the DriverStationLCD class created to print text to the actual physical screen of the Driver Station last year?

To my knowledge, you print strings to the User Messages region in the dashbard using the Dashboard class.
You can do that too, but to see it, you need to add a text display to your dashboard. The DriverStationLCD interface is implemented in the "User Messages" box for the new DriverStation. Any code that would print on the Blue DS's LCD will now print in User Messages box of the soft DS.

-Joe
Reply With Quote
  #9   Spotlight this post!  
Unread 04-02-2010, 21:32
Lucie365 Lucie365 is offline
Registered User
FRC #0365
 
Join Date: Feb 2010
Location: Wilmington, DE
Posts: 13
Lucie365 has a spectacular aura aboutLucie365 has a spectacular aura about
Re: outputting data to DS's usermessage

Thanks for the response. And yes..I forgot to call update. I will test it tomorrow but expect that was my only problem.
Reply With Quote
  #10   Spotlight this post!  
Unread 06-02-2010, 06:45
pafwl pafwl is offline
Franciose
AKA: Frank Larkin
FRC #0272 (Cyber Crusaders)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 1998
Location: Lansdale, Pennsylvania
Posts: 108
pafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud of
Re: outputting data to DS's usermessage

I used this feature very successfully last year but only on 1 line. I had high hopes for this year.

I started trying to use this but cannot get it to work. I am writing to one line again. In this case the pointer is locally declared each time I come into the function I am using to write it.

DriverStationLCD *p_dsLCD = DriverStationLCD::GetInstance();
p_dsLCD->Printf(DriverStationLCD::kUser_Line6, 1, "test" );
p_dsLCD->UpdateLCD();

I applied the last software update and now I get and errro on cRio boot.

Warning: module 0x134ad80 (FRC_UserProgram.out) holds reference to undefined symbol _ZN16DriverStationLCD11kLineLengthE.
(unloading partially loaded module FRC_UserProgram.out)
...FRC_UserProgram failed to load.

If I comment out his code I am fine.

Any ideas?
Reply With Quote
  #11   Spotlight this post!  
Unread 06-02-2010, 10:25
bronxbomber92 bronxbomber92 is offline
Registered User
FRC #1551 (Grapes of Wrath)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Naples
Posts: 75
bronxbomber92 is an unknown quantity at this point
Re: outputting data to DS's usermessage

Have you tried doing a clean and build?
Reply With Quote
  #12   Spotlight this post!  
Unread 06-02-2010, 11:30
Thyn Thyn is offline
Registered User
FRC #1504
 
Join Date: Feb 2010
Location: Okemos
Posts: 1
Thyn is an unknown quantity at this point
Re: outputting data to DS's usermessage

We are also having pafwl's issue, and will post if we figure anything out. Cleaning does not resolve the issue.

Last edited by Thyn : 06-02-2010 at 11:37.
Reply With Quote
  #13   Spotlight this post!  
Unread 06-02-2010, 13:36
sunit sunit is offline
Registered User
FRC #1504
 
Join Date: Feb 2010
Location: Okemos, MI
Posts: 6
sunit is an unknown quantity at this point
Re: outputting data to DS's usermessage

Clean and Build did not fix the issue.

We commented out all the lines that use DriverStationLCD and that did not fix the issue.

At this point we are in the process of reinstalling WindRiver workbench and not install the latest patch.

Can someone please assist.

Thanks,
Sunit

Last edited by sunit : 06-02-2010 at 13:56.
Reply With Quote
  #14   Spotlight this post!  
Unread 07-02-2010, 09:07
Mike Mahar Mike Mahar is offline
Registered User
FRC #0138
 
Join Date: Jan 2007
Location: Amherst, NH
Posts: 64
Mike Mahar will become famous soon enough
Re: outputting data to DS's usermessage

We are also having this problem with kLineLength. When we comment out the DriverStationLCD code the problem goes away. I looked at the new source code for the library and I didn't see anything obvious as to what would cause this. I'm beginning to suspect that something went wrong with the wpilib.a build in the latest update.

I haven't tried building the WPILIB from sources yet.
Reply With Quote
  #15   Spotlight this post!  
Unread 07-02-2010, 23:32
LyraS LyraS is offline
Registered User
FRC #2102
 
Join Date: Jan 2010
Location: California
Posts: 6
LyraS is an unknown quantity at this point
Re: outputting data to DS's usermessage

We are also having the same problem. Anyone have a workaround for this?
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
Voltage not outputting to the Drivers Station Ryutso Electrical 8 09-02-2010 11:39
Periodic Task Data --> Robot Data Kahn! NI LabVIEW 3 10-02-2009 19:38
Sending user data, parsing user data. demosthenes2k8 NI LabVIEW 3 30-01-2009 13:51
PWMs not outputting in Autonomous 937Programmers Programming 15 08-02-2007 21:25


All times are GMT -5. The time now is 12:46.

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