Go to Post Someday I will have to learn how tagging and reps work. I already know how search and brain farts work. - kstl99 [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
  #16   Spotlight this post!  
Unread 23-01-2011, 20:25
jwakeman jwakeman is offline
Registered User
FRC #0063 (Red Barons)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: 16510
Posts: 182
jwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nice
Re: Button programin C++

Oops i put in myRobot.Drive(0.5,1.0); for your half speed...that would make you turn sharply! you need myRobot.Drive(0.5,0.0);
Reply With Quote
  #17   Spotlight this post!  
Unread 02-03-2012, 12:10
AndrewD's Avatar
AndrewD AndrewD is offline
Programming/Electrical Mentor
AKA: Andrew Dolio
FRC #1243 (Dragons)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Swartz Creek, MI
Posts: 23
AndrewD is an unknown quantity at this point
Re: Button programin C++

For the button, you could just use this:

Code:
if (leftStick.GetRawButton(1) == true) {

}
because the trigger on the joysticks is just button 1. All buttons on the Logitech ATK3's are labeled. That's why FIRST picked them. Also, that little roller thingy is the Z-axis. AKA, Axis 3.

X = 1
Y = 2
Z = 3

for controllers with 2 joysticks (like xbox or 360),

rotX = 4
rotY = 5
__________________



____________________________________________
Programming/Electrical Mentor
FRC Team #1243 - The Dragons
Reply With Quote
  #18   Spotlight this post!  
Unread 02-03-2012, 17:39
MamaSpoldi's Avatar
MamaSpoldi MamaSpoldi is offline
Programming Mentor
AKA: Laura Spoldi
FRC #0230 (Gaelhawks)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Shelton, CT
Posts: 305
MamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant future
Re: Button programin C++

Quote:
Originally Posted by tomy View Post
discokittys worked


random question for you guys, i know it is off the topic but...

why isnt my camera sending an image to my driverstation?
Have you configured the camera using the Camera Configuration Tool that was part of the Utilities Update? See the instruction in this document in the section named "How To Configure Your Camera": http://www.usfirst.org/sites/default...20System_2.pdf
__________________
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


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

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