Go to Post Yes, blame Gary. For everything. - MissInformation [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 17-01-2015, 19:02
Jack Gillespie's Avatar
Jack Gillespie Jack Gillespie is offline
Registered User
FRC #5430 (Pirate Robolution)
Team Role: Teacher
 
Join Date: Nov 2008
Rookie Year: 2009
Location: Vallejo California
Posts: 48
Jack Gillespie is an unknown quantity at this point
Motor Control issues

We have gone through the tutorials, code deployed, Camera is working, joysticks working on the Dashboard, Motors don't run. Get the following error message: 44061 Occurred at "left and right motors in the VI path: Robot Main.VI. We are trying to run the sample arcade program given in Labview.
Reply With Quote
  #2   Spotlight this post!  
Unread 17-01-2015, 20:40
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Motor Control issues

Have you enabled the DS? What do the motor controller LEDs look like?

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 17-01-2015, 21:56
Jack Gillespie's Avatar
Jack Gillespie Jack Gillespie is offline
Registered User
FRC #5430 (Pirate Robolution)
Team Role: Teacher
 
Join Date: Nov 2008
Rookie Year: 2009
Location: Vallejo California
Posts: 48
Jack Gillespie is an unknown quantity at this point
Re: Motor Control issues

The Driver Station is Enabled. The Talon LED's are on solid and not blinking
Reply With Quote
  #4   Spotlight this post!  
Unread 18-01-2015, 08:07
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Motor Control issues

Those are good signs.

When you press the joystick forward, does the LED on the motor controller start to blink? Does the blink rate correspond to the power being requested? If not, I'd check the code to see what value is being sent to the motor controller. It should be between -1 and 1 inclusive. Also, how often is it being sent? If it is sent and the code then spends a long time doing something else, the RobotDrive Safety mechanism will set the motors back to 0 after 100ms. From your description, it sounds like the first issue.

One other thing to check is that the PWM cables look "right", black on the outside of the roboRIO and built correctly with the same colors in the same position on both ends.

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 18-01-2015, 09:14
Jack Gillespie's Avatar
Jack Gillespie Jack Gillespie is offline
Registered User
FRC #5430 (Pirate Robolution)
Team Role: Teacher
 
Join Date: Nov 2008
Rookie Year: 2009
Location: Vallejo California
Posts: 48
Jack Gillespie is an unknown quantity at this point
Re: Motor Control issues

I will check this morning on the roboRio side for the PWM cables, but I believe they are correct. I know they are correct on the Talon side. I will also check continuity of the PWM's. When we move the joysticks movement shows in the Driver Station. No change of any kind on the talons As soon as I get to school I will upload a photo of the code.

Thanks for all of your time
Reply With Quote
  #6   Spotlight this post!  
Unread 18-01-2015, 15:33
Jack Gillespie's Avatar
Jack Gillespie Jack Gillespie is offline
Registered User
FRC #5430 (Pirate Robolution)
Team Role: Teacher
 
Join Date: Nov 2008
Rookie Year: 2009
Location: Vallejo California
Posts: 48
Jack Gillespie is an unknown quantity at this point
Re: Motor Control issues

We have checked the PWM cables both for polarity and contitnuity.
We have checked the PWM settings in the code We are using the default code in Labview
Reply With Quote
  #7   Spotlight this post!  
Unread 18-01-2015, 16:10
ozrien's Avatar
ozrien ozrien is online now
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 524
ozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond repute
Re: Motor Control issues

If the Talon Sr LEDs are solid orange, then they are being commanded to go to neutral. That suggests either the joystick is in the wrong slot (remember they start at zero this year, not one) or some other logic issue in the robot code.

Try to just create a simple app that drives the Talon. That should help narrow down the problem. If it works then work out the differences. If it does not work try focus on that.
Reply With Quote
  #8   Spotlight this post!  
Unread 18-01-2015, 20:48
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,113
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: Motor Control issues

Have you made any changes to the default program?

How are you running the code on the robot?
Reply With Quote
  #9   Spotlight this post!  
Unread 18-01-2015, 21:43
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Motor Control issues

If you open TeleOp and probe the numbers coming from the joystick, what do you get? Next you can see the values from the RobotDrive that is being sent to SmartDashboard. So what are those values? I suspect they are zeroes, and the next quest will be to figure out why.

Greg McKaskle
Reply With Quote
  #10   Spotlight this post!  
Unread 19-01-2015, 00:19
Jack Gillespie's Avatar
Jack Gillespie Jack Gillespie is offline
Registered User
FRC #5430 (Pirate Robolution)
Team Role: Teacher
 
Join Date: Nov 2008
Rookie Year: 2009
Location: Vallejo California
Posts: 48
Jack Gillespie is an unknown quantity at this point
Talking Re: Motor Control issues

Finally solved the problem, pulled up the example Arcade VI, notice the while loop, added a while loop the default project. Changed the Joystick in the USB setting of the Driver station and suddenly it all worked. Now we just have to figure out was it the DS setting or the while loop or both that solved the problem. We now have reliable camera and drive on our Proto-board. Now the Programmers can really start to work.
Reply With Quote
  #11   Spotlight this post!  
Unread 19-01-2015, 01:10
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,113
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: Motor Control issues

It was the joystick. Before you moved it to where the program expected it, the program was looking for values from a joystick that didn't exist.

I don't know where you put the While, but you should probably take it back out. It certainly doesn't belong in Teleop.
Reply With Quote
  #12   Spotlight this post!  
Unread 22-01-2015, 13:50
Jack Gillespie's Avatar
Jack Gillespie Jack Gillespie is offline
Registered User
FRC #5430 (Pirate Robolution)
Team Role: Teacher
 
Join Date: Nov 2008
Rookie Year: 2009
Location: Vallejo California
Posts: 48
Jack Gillespie is an unknown quantity at this point
Re: Motor Control issues

Ok, the kids got the mockup board working in Arcade Drive.
They have been trying to set up tank drive. When the try it out one joystick will work driving one motor on the x-axes, and the other motor on the y-axes.
I have attached the teleop code they created. What are we doing wrong?
Attached Thumbnails
Click image for larger version

Name:	tank drive teleop.png
Views:	38
Size:	85.2 KB
ID:	17944  
Reply With Quote
  #13   Spotlight this post!  
Unread 22-01-2015, 14:30
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,113
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: Motor Control issues

One of the joystick RefNum Get functions is actually a RefNum Set. That's a problem.
Reply With Quote
  #14   Spotlight this post!  
Unread 22-01-2015, 15:38
ProgrammerJuan's Avatar
ProgrammerJuan ProgrammerJuan is offline
Registered User
FRC #5430
 
Join Date: Jan 2015
Location: Pittsburg,Ca
Posts: 4
ProgrammerJuan is an unknown quantity at this point
Re: Motor Control issues

Hello Alan I'm Juan one of the programmers for Team 5430 and i have changed the joystick set to joystick get. There are two problems the joysticks are being read but there is no output, and its only reading one joystick so that one joystick runs two motors. We would love to receive your opinion on this problem.
Reply With Quote
  #15   Spotlight this post!  
Unread 22-01-2015, 16:31
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,113
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: Motor Control issues

I need to see Begin.vi in order to know where to focus on next. It sounds like you might not be opening or naming the joysticks the way you think you are.
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:19.

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