Go to Post While at kickoff I asked Woodie if there were any concerns about missed shots at the center goal hitting the operators or the controls. He handed me a ball and told me to throw it at him as hard as I could... How many times does an opportunity like that come up? - Barry Bonzack [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,751
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,751
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 offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 522
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,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: 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,751
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,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: 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
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 08:58.

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