View Single Post
  #3   Spotlight this post!  
Unread 02-09-2005, 11:01
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,817
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: looking for 1 joystick Pbasic drive code

Here's the 1-joystick code we used for driver practice this year on a second robot using one of the older controllers. I don't remember if it's any different than the original default code other than minor changes though. It does a debug printout of the drive values being sent to the PWMs.

The right drive motors are on PWMs 1 & 2 & 13 & 14
The left motors are on PWMs 3 & 4 & 15 & 16

P.S. This second version was used on a third robot, but reverses the behavior of the joysticks due to motor wiring and mounting. It switches between 1 and 2-joystick operation based on the value of p4_sw_aux1 where we attached a switch on the OI.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 02-09-2005 at 11:25.