View Single Post
  #3   Spotlight this post!  
Unread 11-10-2006, 14:54
Roger Roger is offline
Registered User
FRC #1153
 
Join Date: Jan 2006
Rookie Year: 1900
Location: Walpole MA
Posts: 685
Roger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond repute
Re: EasyC-FRC - Arcade driving help

Thanks EHaskins -- to think it's as simple as:

LeftDrive = JoyX - JoyY + 127;
RightDrive = JoyX + JoyY - 127;

LeftDrive = Limit(LeftDrive,0,255);
RightDrive = Limit(RightDrive,0,255);

to mix the x and y axis numbers and get a motor speed.

Can't wait to get to that robot now!

Roger.