Thread: [FTC]: Robot C
View Single Post
  #5   Spotlight this post!  
Unread 02-11-2009, 16:14
vexman2222's Avatar
vexman2222 vexman2222 is offline
Registered User
AKA: Jakob BRaun
FTC #3385
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2007
Location: MN, US
Posts: 5
vexman2222 is an unknown quantity at this point
Re: [FTC]: Robot C

I might be able to answer both of your questions

for a basic 2 motor 2 joystick teleOp drive:

joystick.joy1_y1 = motor[motorD]

joystick.joy1_y2 = motor[motorE]


assuming that you have the motors configured with defult names.

For button control you will use if statements:

if(joystick.joy1_buttons == )

{
motor[motorD] = 100;
motor[motorE] = 100;
}

I am still a little rusty from last year these might not work....
__________________
Prior Lake robotics is hosting the 2nd annual MN FTC snow drift competition on March 6th
Reply With Quote