View Single Post
  #3   Spotlight this post!  
Unread 24-02-2016, 20:56
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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,795
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: four-motor tank drive control

Any particular reason you don't combine and simplify everything into one Open 4 Motor drive?

In Teleop.vi you should not be Opening your xBox joystick 50 times a second.
You are Opening the same joystick over and over again confusing the system.
Just use Joystick 0 in Teleop.vi just like you are using Right Motors.

Begin.vi is only called once and is used to open (once) all the devices you will be using elsewhere.
Teleop.vi gets called 50 times a second to handle the constantly changing commands coming from the drivers.
Attached Thumbnails
Click image for larger version

Name:	Open4Motor.png
Views:	27
Size:	36.2 KB
ID:	20191  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 24-02-2016 at 21:20.
Reply With Quote