Go to Post I love it when awards go to the right people. - David Kelso [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 03-03-2016, 10:37
apm4242 apm4242 is offline
Registered User
FRC #4242
 
Join Date: Jan 2013
Location: United States
Posts: 80
apm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud of
Help- Motors running when they shouldn't be

Hi

We are having an issue with one of the motors moving very slowly in both teleop and autonomous. At first I thought it was because we're using an Xbox controller and we would just have to code a deadband in Labview to prevent this but then we saw that it was also happening during autonomous, which I can't explain. It's even happening during autonomous routines that don't include that particular motor...

Does anyone know why this would happen?

Thanks in advance!
Reply With Quote
  #2   Spotlight this post!  
Unread 03-03-2016, 10:53
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,731
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: Help- Motors running when they shouldn't be

Possibly a mis-calibrated motor controller.

You can also introduce a problem when you calibrate to a really sloppy centering stick that might work fine in teleop, but autonomous which doesn't use the sloppy values has a different center.
So pure neutral isn't neutral anymore.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 03-03-2016 at 10:58.
Reply With Quote
  #3   Spotlight this post!  
Unread 03-03-2016, 11:18
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,570
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Help- Motors running when they shouldn't be

Concur with Mark on controller calibration being the most likely issue.

It could also be a faulty connection on the PWM line that intermittently gives pulses in the drive speed range; less likely.

Also, check to see if the controller tries to run the motor when the PWM is disconnected. That would be sign of a problem inside the controller.

Another thing you can try is to switch the left and right PWM wires at the RIO end and see if the problem follows the port or the wire/controller/motor system. If it switches, you have some sort of problem in software or the RIO. If it stays with the same motor, it's somewhere on the hardware side of that connection.
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.

Last edited by GeeTwo : 03-03-2016 at 11:22.
Reply With Quote
  #4   Spotlight this post!  
Unread 03-03-2016, 12:41
laplacier's Avatar
laplacier laplacier is offline
Registered User
FRC #1287 (Aluminum Assault)
Team Role: Engineer
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Myrtle Beach, SC
Posts: 25
laplacier is an unknown quantity at this point
Re: Help- Motors running when they shouldn't be

Have you tried loading a new, unmodified RoboRIO project to the RoboRIO? If that makes the issue go away then the culprit could be your project.

I had a similar issue occur to another team, but that was a more sinister issue which I hope is not what is afflicting you. However, I don't think anyone would be capable of replicating this.

During build season when one of the neighboring schools stopped by our school for assistance they complained that their motors would run nonstop as soon as the robot was turned on. That didn't make much sense to me since code on a robot would take a little bit of time to boot up when powered on. They set up a time to bring their robot over to us to take a look. Turns out they had wired several components wrong to the power distribution board, including the RoboRIO. The RoboRIO was fried in such a way that it was sending junk data down every signal port including ethernet. The total damage was a RoboRIO and three Talon SRs (and the routers survived being plugged in reverse for an extended period of time!). Lesson learned: check the wiring manual before plugging in your sensitive components willy nilly!
Reply With Quote
  #5   Spotlight this post!  
Unread 03-03-2016, 15:20
apm4242 apm4242 is offline
Registered User
FRC #4242
 
Join Date: Jan 2013
Location: United States
Posts: 80
apm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud of
Re: Help- Motors running when they shouldn't be

Thanks for all the replies! I'll calibrate the Talon SRX and then move on to the other troubleshoots. The robot is currently bagged but I'll follow up with a post after I can make the changes.
Reply With Quote
  #6   Spotlight this post!  
Unread 07-03-2016, 08:17
apm4242 apm4242 is offline
Registered User
FRC #4242
 
Join Date: Jan 2013
Location: United States
Posts: 80
apm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud of
Re: Help- Motors running when they shouldn't be

We got it fixed. First we calibrated the talon srx but it didn't seem to help. Then we added a 0.2 deadband in the code - very little change. Finally we calibrated the talon srx again just in case and it worked. On the second calibration, we made sure to leave the stick centered for a good 5 seconds before releasing the CAL button.

Thanks for the help!
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 03:49.

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