Go to Post what fun is it if you haven't ripped out all your hair and beaten your now bald head against the wall for extended periods of time.... - pickle [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 01-21-2010, 05:57 PM
Gamer930's Avatar
Gamer930 Gamer930 is offline
Team 930 and 171 Alumni
AKA: Justin
no team
Team Role: Alumni
 
Join Date: Mar 2002
Rookie Year: 2002
Location: New Berlin, WI
Posts: 388
Gamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to behold
Arrow Printing Float to Dashboard

I'm looking at printing the value of the joystick y axis to the screen.

Code:
DriverStation *ds;
DriverStationLCD *dsLCD;
Joystick *driveController;

RobotDemo(void)
{
    ds = DriverStation::GetInstance();
    dsLCD = DriverStationLCD::GetInstance();
    driveController = new Joystick(1);
}

void OperatorControl(void)
{
    GetWatchdog().SetEnabled(true);
    while (IsOperatorControl())
    {
        GetWatchdog().Feed();
        dsLCD->Printf(DriverStationLCD::kUser_Line4, 1, driveController->GetY());
        dsLCD->UpdateLCD();
    }
}
Is there something that needs to be included?? is there a ToString() like there is in java???

Also is there string concatenation that you can add two strings together?? "Left Drive: " + driverController->GetY()
__________________
2010 to Present, Scorekeeper/Field Power Volunteer for FRC/FTC/FLL
2005 - 2010, Team 171 College Mentor
2002 - 2005, Team 930 Student
Reply With Quote
 


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
problem with printing float windell747 Programming 3 02-12-2008 10:23 AM
printing FLOAT data type on the terminal window razer Programming 14 02-05-2007 08:55 AM
Robots that float boy_scout72688 Rules/Strategy 31 01-15-2007 10:18 PM
Float Design i like dirt Technical Discussion 3 09-13-2006 12:21 AM
Float in MPLAB capenga Programming 1 02-18-2005 06:44 AM


All times are GMT -5. The time now is 09:20 AM.

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