Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Button programin C++ (http://www.chiefdelphi.com/forums/showthread.php?t=89897)

jwakeman 23-01-2011 20:25

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);

AndrewD 02-03-2012 12:10

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

MamaSpoldi 02-03-2012 17:39

Re: Button programin C++
 
Quote:

Originally Posted by tomy (Post 1006777)
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


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

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi