|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#16
|
|||
|
|||
|
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);
|
|
#17
|
||||
|
||||
|
Re: Button programin C++
For the button, you could just use this:
Code:
if (leftStick.GetRawButton(1) == true) {
}
X = 1 Y = 2 Z = 3 for controllers with 2 joysticks (like xbox or 360), rotX = 4 rotY = 5 |
|
#18
|
||||
|
||||
|
Re: Button programin C++
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|