Go to Post "I don't have a cockroach in my presentation.... " I will remember this line forever. Thank you Autodesk. - Zyik [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 19-12-2011, 20:29
plnyyanks's Avatar
plnyyanks plnyyanks is offline
Data wins arguments.
AKA: Phil Lopreiato
FRC #1124 (The ÜberBots), FRC #2900 (The Mighty Penguins)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: NYC/Washington, DC
Posts: 1,114
plnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond repute
Re: pulsing motors

It sounds like that you're using two joysticks to simultaneously control the robot (2 for tank, 1 for arcade). Since you - the human - are only interacting with one set of joysticks at one given point in time, the other joystick will read 0 when you're not using it. Therefore, every iteration through your code, two values will be set to the motor: one value (which is the one you want) from the joystick that you're actively using to control the robot, and another value from the joystick you're not using (which will give a 0). I can easily see why this setup would cause the symptoms you're describing.

To fix this, I wouldn't have your robot controlled in this manor. Maybe have a joystick button you have to hold down in order to go into a certain drive mode, or a switchbox switch. But don't have both types of control happening in parallel - then two values will be get set to the motor each iteration - and that's bad.
__________________
Phil Lopreiato - "It's a hardware problem"
Team 1124 (2010 - 2013), Team 1418 (2014), Team 2900 (2016)
FRC Notebook The Blue Alliance for Android
Reply With Quote
  #2   Spotlight this post!  
Unread 20-12-2011, 07:17
tilky's Avatar
tilky tilky is offline
Registered User
AKA: Ryan Thielke
FRC #3137
Team Role: Programmer
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Connetquot
Posts: 188
tilky is an unknown quantity at this point
Re: pulsing motors

i am currently working on that method, i can't believe i was that stupid not to realize that!
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 20:40.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi