Go to Post Bottom line for us is this... By elevating what ANY team can do, we also push those outstanding teams to go even further. - Rich Kressly [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 30-01-2014, 23:39
Kevin Phan's Avatar
Kevin Phan Kevin Phan is offline
College Student
FRC #0357 (Royal Assault)
Team Role: Alumni
 
Join Date: Apr 2013
Rookie Year: 2010
Location: PA, United States
Posts: 95
Kevin Phan will become famous soon enoughKevin Phan will become famous soon enough
Unhappy Robot behaving strangely

After a quick search around chief delphi and a look in the technical forum on the first forum, I have not found a solution to what is happening to the robot. Recently, a side of the robot will drive without any command from the joystick. The weird thing here is that even using a blank project, the side will move. Now during testing, I changed which pwm for each side in the program.(i.e. pwm 2 for the left is now pwm 1 for the left) When doing this, the other side will now move without any command from the joystick. I probed the joystick output values and it verified that the joystick is not responsible for the issue. The robot worked before Tuesday night.

There's another issue I have when deploying code, is that the cRIO is not recognized. Yes, I have checked the laptop's ip, it is set-up correctly. Yes, I have tried switching cables. Only when I rewrite my code from scratch in a new project will it work.

Now I am at a dead end with this, I tried power cycling and reformatting the cRIO. I also checked the cables themselves and they all are wired correctly.

The vi we are trying to drive is with the tank drive vi. Temporarily it worked when we deleted the vi and bringing it back into the program. If it helps, the motors are y'ed together and they both show a solid green led light and the other side show the orange light. Again we used a blank project and in the project we are working in, we disabled all of our other code in tele-op except for the drive. There is also nothing filtering the joystick value to the tank vi.
Reply With Quote
  #2   Spotlight this post!  
Unread 30-01-2014, 23:53
sanelss sanelss is offline
Registered User
FRC #1658
 
Join Date: Dec 2012
Location: saint louis
Posts: 258
sanelss is a splendid one to beholdsanelss is a splendid one to beholdsanelss is a splendid one to beholdsanelss is a splendid one to beholdsanelss is a splendid one to beholdsanelss is a splendid one to behold
Re: Robot behaving strangely

maybe a labview corruption of some sort? It doesn't sounds like it's a speed controller or electrical issue if the sides change when u change motor assignments. Try bypassing the tank drive vi. Set up 2 motors and just send the joystick value to all the motors and see how it behaves. you may need to re install labview or at least redo the tank drive vi if that is indeed the issue.
Reply With Quote
  #3   Spotlight this post!  
Unread 30-01-2014, 23:54
Cecil's Avatar
Cecil Cecil is offline
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 343
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Re: Robot behaving strangely

Are all 3 lights on your Digital Sidecar brightly lit? Try replacing the y cables with individual PWM cables and see if it clears up. It may be a bad cable, but something makes me think its more than that.
__________________
I'm right 90% of the time, so why worry about the other 3%?
Reply With Quote
  #4   Spotlight this post!  
Unread 31-01-2014, 00:15
sanelss sanelss is offline
Registered User
FRC #1658
 
Join Date: Dec 2012
Location: saint louis
Posts: 258
sanelss is a splendid one to beholdsanelss is a splendid one to beholdsanelss is a splendid one to beholdsanelss is a splendid one to beholdsanelss is a splendid one to beholdsanelss is a splendid one to behold
Re: Robot behaving strangely

Quote:
Originally Posted by Cecil View Post
Are all 3 lights on your Digital Sidecar brightly lit? Try replacing the y cables with individual PWM cables and see if it clears up. It may be a bad cable, but something makes me think its more than that.
from what he said:

Quote:
I changed which pwm for each side in the program.(i.e. pwm 2 for the left is now pwm 1 for the left) When doing this, the other side will now move
so a change in the software changes the behvarios so it sounds like software issue not hardware
Reply With Quote
  #5   Spotlight this post!  
Unread 31-01-2014, 00:22
Cecil's Avatar
Cecil Cecil is offline
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 343
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Re: Robot behaving strangely

Quote:
Originally Posted by sanelss View Post
so a change in the software changes the behvarios so it sounds like software issue not hardware
Darn my short term memory

Are you hard wiring your robot to code/drive with? We have run into a problem before when other members were driving a robot from the past year. That driver station then connected to the robot we were programming and about drove it off the table.

If that is not the case, I can't think of a half decent reason it would do that, especially after changing the PWM ports.
__________________
I'm right 90% of the time, so why worry about the other 3%?
Reply With Quote
  #6   Spotlight this post!  
Unread 31-01-2014, 01:03
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Robot behaving strangely

Quote:
Originally Posted by Kevin Phan View Post
If it helps, the motors are y'ed together and they both show a solid green led light and the other side show the orange light.
Green means it's receiving a signal that tells it to drive forward. What kind of motor controller is it? Did you somehow miscalibrate them so that they think a neutral command is actually forward? Try resetting them to factory calibration.
Reply With Quote
  #7   Spotlight this post!  
Unread 31-01-2014, 15:28
Kevin Phan's Avatar
Kevin Phan Kevin Phan is offline
College Student
FRC #0357 (Royal Assault)
Team Role: Alumni
 
Join Date: Apr 2013
Rookie Year: 2010
Location: PA, United States
Posts: 95
Kevin Phan will become famous soon enoughKevin Phan will become famous soon enough
Re: Robot behaving strangely

Here's some more details to clear some things up. We are using four talons for our speed controller on the drive. We are directly connected to the cRIO throughout the entire time currently in the season. The talons have not been calibrated but early in the season we tested them with basic drive code they worked well. We made sure the cRIO has the right team address.(10.3.57.2)
Programming wise it is a straight wire from the axis of the joystick to the axis input to the tank drive.

Last edited by Kevin Phan : 31-01-2014 at 18:22. Reason: Grammatical
Reply With Quote
  #8   Spotlight this post!  
Unread 31-01-2014, 15:35
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Electrical/Programming Mentor
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,747
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Robot behaving strangely

Do you have a scope available to probe the PWM signal being sent to each motor controller?
__________________
2007 - Present: Mentor, 2177 The Robettes
LRI: North Star 2012-2016; Lake Superior 2013-2014; MN State Tournament 2013-2014, 2016; Galileo 2016; Iowa 2017
2015: North Star Regional Volunteer of the Year
2016: Lake Superior WFFA
Reply With Quote
  #9   Spotlight this post!  
Unread 31-01-2014, 15:40
Kevin Phan's Avatar
Kevin Phan Kevin Phan is offline
College Student
FRC #0357 (Royal Assault)
Team Role: Alumni
 
Join Date: Apr 2013
Rookie Year: 2010
Location: PA, United States
Posts: 95
Kevin Phan will become famous soon enoughKevin Phan will become famous soon enough
Re: Robot behaving strangely

Quote:
Originally Posted by Jon Stratis View Post
Do you have a scope available to probe the PWM signal being sent to each motor controller?
I do not think so. I looked in the wpi tank drive control and the motor values are dependent on the joystick values. We probed the joystick value and found that it was 0 or .007. Which is too low of a value to have the motors going full forward.
Reply With Quote
  #10   Spotlight this post!  
Unread 31-01-2014, 16:17
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Robot behaving strangely

Quote:
Originally Posted by Kevin Phan View Post
There's another issue I have when deploying code, is that the cRIO is not recognized. Yes, I have checked the laptop's ip, it is set-up correctly. Yes, I have tried switching cables. Only when I rewrite my code from scratch in a new project will it work.
In the LabVIEW project, do you have the target IP address set to 10.3.57.2, or is it 10.03.57.2? I've found that having a leading zero can confuse the networking sometimes.
Reply With Quote
  #11   Spotlight this post!  
Unread 31-01-2014, 16:21
Kevin Phan's Avatar
Kevin Phan Kevin Phan is offline
College Student
FRC #0357 (Royal Assault)
Team Role: Alumni
 
Join Date: Apr 2013
Rookie Year: 2010
Location: PA, United States
Posts: 95
Kevin Phan will become famous soon enoughKevin Phan will become famous soon enough
Re: Robot behaving strangely

Quote:
Originally Posted by Alan Anderson View Post
In the LabVIEW project, do you have the target IP address set to 10.3.57.2, or is it 10.03.57.2? I've found that having a leading zero can confuse the networking sometimes.
Yes it is setup as 10.3.57.2.

Something else I forgot to add was that in the tele-op vi (where the drive code is), I gave a constant of zero to both sides and the side that moved without joystick command, moved. I moved the joystick axis and the other side did not move. I know that my coding is not wrong on the surface, but I don't know how in the world is this happening.

Last edited by Kevin Phan : 31-01-2014 at 18:36. Reason: Additional information
Reply With Quote
  #12   Spotlight this post!  
Unread 31-01-2014, 23:40
Kevin Phan's Avatar
Kevin Phan Kevin Phan is offline
College Student
FRC #0357 (Royal Assault)
Team Role: Alumni
 
Join Date: Apr 2013
Rookie Year: 2010
Location: PA, United States
Posts: 95
Kevin Phan will become famous soon enoughKevin Phan will become famous soon enough
Re: Robot behaving strangely

Tonight we created a new project and bit by bit reprogrammed the robot. I'm not sure what caused this phenomenon, but if it comes back...
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 09:46.

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