Go to Post there is no mechanics Barbie. - Iain McLeod [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 13-02-2014, 19:38
EFastring EFastring is offline
Registered User
AKA: Eric Fastring
FRC #2078 (Robotic Wolves)
Team Role: Engineer
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Slidell, Louisiana, USA
Posts: 24
EFastring is an unknown quantity at this point
Compressor code kills our drive system

We have been banging our head against this problem for a week. After rewiring everything and changing out jaguars, cables, etc, we don't know how to proceed.

We start with default code. Invert one side's motors and invert the x axis of the joystick and everything runs great.

We add in the simple compressor code found here https://docs.google.com/document/d/1...cqI/edit?pli=1 and it breaks our code every time.

Im not sure what we are doing wrong.

Add the compressor code to begin.vi and the code to periodic tasks.vi and our drive system stops working.

Any ideas?
Reply With Quote
  #2   Spotlight this post!  
Unread 13-02-2014, 19:41
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Compressor code kills our drive system

Can you post your begin and periodic tasks?
Reply With Quote
  #3   Spotlight this post!  
Unread 13-02-2014, 22:14
EFastring EFastring is offline
Registered User
AKA: Eric Fastring
FRC #2078 (Robotic Wolves)
Team Role: Engineer
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Slidell, Louisiana, USA
Posts: 24
EFastring is an unknown quantity at this point
Re: Compressor code kills our drive system

I won't have access to it until tomorrow, but I will post it then.

Thanks
Reply With Quote
  #4   Spotlight this post!  
Unread 14-02-2014, 06:11
Chris Hibner's Avatar Unsung FIRST Hero
Chris Hibner Chris Hibner is offline
Eschewing Obfuscation Since 1990
AKA: Lars Kamen's Roadie
FRC #0051 (Wings of Fire)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1997
Location: Canton, MI
Posts: 1,488
Chris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond repute
Re: Compressor code kills our drive system

Did you put the compressor code inside one of the loops already in Periodic Tasks?
__________________
-
An ounce of perception is worth a pound of obscure.
Reply With Quote
  #5   Spotlight this post!  
Unread 14-02-2014, 16:35
EFastring EFastring is offline
Registered User
AKA: Eric Fastring
FRC #2078 (Robotic Wolves)
Team Role: Engineer
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Slidell, Louisiana, USA
Posts: 24
EFastring is an unknown quantity at this point
Re: Compressor code kills our drive system






It looks like we did not put the code inside a loop. Should it be? If so which one, 10ms or 100ms?
Reply With Quote
  #6   Spotlight this post!  
Unread 14-02-2014, 17:00
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: Compressor code kills our drive system

So what happens when the robot is enabled in teleop? Does the compressor run? Do any of the motors respond? Does your teleop function get called. Does the dashboard show that the joystick is moving? Does it show values being written to the motors?

Greg McKaskle
Reply With Quote
  #7   Spotlight this post!  
Unread 14-02-2014, 17:22
EFastring EFastring is offline
Registered User
AKA: Eric Fastring
FRC #2078 (Robotic Wolves)
Team Role: Engineer
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Slidell, Louisiana, USA
Posts: 24
EFastring is an unknown quantity at this point
Re: Compressor code kills our drive system

So what happens when the robot is enabled in teleop?
Drive motors spin for a faction of a second and then kill. After this, the drive motors no longer function if the joystick is moved.


Does the compressor run?
No

Do any of the motors respond?
No

Does your teleop function get called.
Not sure, how would I tell?

Does the dashboard show that the joystick is moving?
I think it did, but I will have to double check.

Does it show values being written to the motors?
Not sure, how would I tell?

Sorry. We lost our main programmer last year without any turnover and are struggling this year to catch back up.
Reply With Quote
  #8   Spotlight this post!  
Unread 14-02-2014, 17:24
EFastring EFastring is offline
Registered User
AKA: Eric Fastring
FRC #2078 (Robotic Wolves)
Team Role: Engineer
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Slidell, Louisiana, USA
Posts: 24
EFastring is an unknown quantity at this point
Re: Compressor code kills our drive system

Another thing to note that may or may not be related.

Our system spazzed out when we tried to run the four motors/jaguars with two split pwm cables. After spending countless hours changing wires, jaguars, pwm cables etc, we gave up.

We have since run 4 PWN cables to the four jaguars and that seems to have solved those problems.
Reply With Quote
  #9   Spotlight this post!  
Unread 14-02-2014, 17:27
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,833
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: Compressor code kills our drive system

Can you take a snapshot of the Teleop code?
It sounds like Teleop is seizing up.

Any code added to Teleop lately?
No loops or Wait calls?

What error messages are on the Driver Station Diagnostics window?
There are a lot of warnings that can obscure the real error messages, so copying and pasting all of them into a text file makes them a lot easier to look through.

You can also look at the Driver Station log from the Charts tab, in the lower right is "Launch Viewer."
You have to pick the latest log or two by date, then look at the Event List tab for error messages.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 14-02-2014 at 17:34.
Reply With Quote
  #10   Spotlight this post!  
Unread 14-02-2014, 17:39
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: Compressor code kills our drive system

Hopefully you are just running interactively and not deployed. All you do is open the teleop subVI from the project or from the RobotMain block diagram. When the subVI is called, the arrow looks like the right sample. If not being called it looks like the left one. When called in a loop, it will flicker back and forth. Or if you probe a wire like the joystick output, it will show the values.

The dashboard shows joysticks and robot motor value on its Drive tab. The values are written in the teleop, so you will know it is running and whether it is updating the motors.

One nonSW thing to check is to see that all three LEDs are brightly lit on the digital breakout board. If not, the 12V power is likely missing. The device will power a few motors with the current from the digital cable, but will fail somewhat mysteriously as more things are connected.

Greg McKaskle
Attached Thumbnails
Click image for larger version

Name:	From Clipboard.png
Views:	10
Size:	8.2 KB
ID:	16234  
Reply With Quote
  #11   Spotlight this post!  
Unread 14-02-2014, 18:04
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Compressor code kills our drive system

Quote:
Originally Posted by EFastring View Post
Our system spazzed out when we tried to run the four motors/jaguars with two split pwm cables. After spending countless hours changing wires, jaguars, pwm cables etc, we gave up.

We have since run 4 PWN cables to the four jaguars and that seems to have solved those problems.
This is a classic symptom of a Digital Sidecar that isn't powered. There can be some leakage current through the DB-37 which is enough to get somethings to work. When you have 4 active PWM signals, you have more current then when you have 2. I suspect that when the compressor code tries to activate the relay, it's drawing more power then is available through the DB-37 cable.

If you remove the DB-37 cable, are all 3 power LEDs brightly lit?
Reply With Quote
  #12   Spotlight this post!  
Unread 15-02-2014, 12:59
EFastring EFastring is offline
Registered User
AKA: Eric Fastring
FRC #2078 (Robotic Wolves)
Team Role: Engineer
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Slidell, Louisiana, USA
Posts: 24
EFastring is an unknown quantity at this point
Re: Compressor code kills our drive system

Quote:
Originally Posted by Greg McKaskle View Post
One nonSW thing to check is to see that all three LEDs are brightly lit on the digital breakout board. If not, the 12V power is likely missing. The device will power a few motors with the current from the digital cable, but will fail somewhat mysteriously as more things are connected.

Greg McKaskle
Ding ding ding. We have a winner!

Thanks you guys, you rock!
Reply With Quote
  #13   Spotlight this post!  
Unread 16-02-2014, 19:38
bvisness's Avatar
bvisness bvisness is offline
Programming Mentor, Former Driver
FRC #2175 (The Fighting Calculators)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Woodbury, MN
Posts: 181
bvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of light
Re: Compressor code kills our drive system

Glad to hear my guide wasn't to blame.
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:52.

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