Go to Post "When you lose you don't say anything. When you win you say even less." - Clinton Bolinger [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
  #3   Spotlight this post!  
Unread 17-01-2009, 21:33
FearlessLeader FearlessLeader is offline
Registered User
AKA: James Wittel
FRC #2753 (Team Overdrive)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2003
Location: NJ
Posts: 6
FearlessLeader is an unknown quantity at this point
Re: Reading Joystick Values Help

#include "WPILib.h"
#include <Joystick.h>

class RobotDemo : public SimpleRobot
{
RobotDrive MyRobot;
Joystick RightStick;
Joystick LeftStick;

public:
RobotDemo(void):
MyRobot(1, 2),
RightStick(1),
LeftStick(2)

{
GetWatchdog().SetExpiration(100);
}

void Autonomous(void)
{

}

void OperatorControl(void)
{
GetWatchdog().SetEnabled(true);
while (IsOperatorControl())

{
RightStick.GetX(); //this is what i need help with
}
}
};

START_ROBOT_CLASS(RobotDemo);


I know i use this but RightStick.GetX(); where do i put the float to get the value
__________________
Team Overdrive #2753 - FRC 2008/2009

FTC 2007/2008 world champions!
New Brunswick Eruption - Future Glory Award
Attending NJ Regional
Attending NYC Regional

www.teen-technology.org
www.JPEX-studios.com
www.team-overdrive.com
Past: FTC #74, FVC #3179
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
Joystick values (?) beefy1 Programming 1 23-12-2008 11:26
Joystick axis values in new controller koreabell Programming 7 17-12-2008 11:39
Joystick Output Values? compwiz2008 Programming 5 17-01-2008 22:40
Mixing Joystick Values for mecanum wheels Leav Programming 10 15-01-2006 14:51
Need Help reading PDF files Tton General Forum 6 14-02-2003 17:43


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

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