Go to Post Instead of lowering a team's expectations, let's raise the amount of competitive resources available to them. ;) - artdutra04 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 09-01-2015, 21:45
1452-Leo 1452-Leo is offline
Registered User
FRC #1452 (Omnicats)
Team Role: Alumni
 
Join Date: Dec 2014
Rookie Year: 2014
Location: Los Angeles
Posts: 44
1452-Leo is an unknown quantity at this point
Print message to Driver Station in C++

I remember when I used Labview I could easily print a message to the Driver Station. This was really useful for debugging and such, but I can't find a way to do it in C++ (I'm still new, our team has never done it before). Does anyone know of an easy way? Thanks!
  #2   Spotlight this post!  
Unread 09-01-2015, 21:49
jtrv's Avatar
jtrv jtrv is offline
github.com/jhtervay
AKA: Justin
FRC #2791 (Shaker Robotics)
Team Role: College Student
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Latham, NY
Posts: 148
jtrv is a name known to alljtrv is a name known to alljtrv is a name known to alljtrv is a name known to alljtrv is a name known to alljtrv is a name known to all
Re: Print message to Driver Station in C++

There doesn't seem to be anything in Java this year either. DriverStationLCD class seems to be just... gone. and DriverStation class has about zero practical methods (it allows you to find out which alliance you're on...)
__________________
2791 (2012-2017)
  #3   Spotlight this post!  
Unread 09-01-2015, 21:50
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,600
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: Print message to Driver Station in C++

The Driver Station doesn't display messages from any language this year. See http://wpilib.screenstepslive.com/s/...e-2014-to-2015 and http://wpilib.screenstepslive.com/s/...th-c-java-code
  #4   Spotlight this post!  
Unread 09-01-2015, 21:55
tomy tomy is offline
Registered User
FRC #3038 (I.C.E. Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Stacy, Minnesota
Posts: 511
tomy has a spectacular aura abouttomy has a spectacular aura about
Re: Print message to Driver Station in C++

My team posted live feed to the driver station using these bits of code:

Code:
#include "DriverStation.h"
#include "NetworkTables/NetworkTable.h"

UserDisplay -> Clear();
UserDisplay -> Printf(DriverStationLCD::kUser_Line3, 1, "Shooter Counter %d", (int)ShooterCounter));
UserDisplay -> UpdateLCD();

UserDisplay -> Clear();
UserDisplay -> UpdateLCD();
SmartDashboard::PutNumber("Shooter Delay", ShooterCounter);
We might have cleared and updated the LCD a bit to much. We used this to see the delay for shooting our ball. This was code was used in updating out 2012 robot. The delay was for the time it took our motors to get up to speed.
Closed Thread


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


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

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