Go to Post 30 point hang is brutal. Those who say it is easy are not thinking it through or are way smarter than the rest of us ... - Paul Copioli [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 29-02-2016, 22:33
Sandboxgod Sandboxgod is offline
Registered User
AKA: William Boyce
FRC #2923 (Aggies)
Team Role: Programmer
 
Join Date: Feb 2016
Rookie Year: 2014
Location: Rosalia
Posts: 5
Sandboxgod is an unknown quantity at this point
Autonomous running on one robot but not the other. (Labview)

As the title says my teams autonomous program will run on the old test robot but not this years robot. On the old test robot it runs just fine. On the new one no matter what I change it drives backwards for a second then stops.

On the old robot we used Jaguars and on the new one we are running Talon SR's. The only thing I would change was the motor type and I made sure it's the correct ones. This is my first year programming so I feel like I'm just missing something simple. If anyone can help me my team and I would really appreciate it.
Attached Files
File Type: vi Autonomous Independent.vi (11.5 KB, 13 views)
  #2   Spotlight this post!  
Unread 29-02-2016, 22:36
joeojazz joeojazz is offline
Registered User
FRC #5712
 
Join Date: Jan 2016
Location: Hemlock
Posts: 42
joeojazz is an unknown quantity at this point
Re: Autonomous running on one robot but not the other. (Labview)

Quote:
Originally Posted by Sandboxgod View Post
As the title says my teams autonomous program will run on the old test robot but not this years robot. On the old test robot it runs just fine. On the new one no matter what I change it drives backwards for a second then stops.

On the old robot we used Jaguars and on the new one we are running Talon SR's. The only thing I would change was the motor type and I made sure it's the correct ones. This is my first year programming so I feel like I'm just missing something simple. If anyone can help me my team and I would really appreciate it.
I know are team had some similar problem and just had to make the values negative instead. I can ask tomorrow to see if they have found any better ways but for now that's what I would do.
Sorry we are using Java not Labview. Hope someone else can help you

Last edited by joeojazz : 29-02-2016 at 22:39. Reason: Java
  #3   Spotlight this post!  
Unread 29-02-2016, 22:41
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,784
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: Autonomous running on one robot but not the other. (Labview)

What does it do on the old robot?

If it's just a question of running the wrong direction, it mean your drive motors are hooked up in the opposite way - you can fix it by negating your values, or by switching the way the wires from the motor are hooked up to the speed controller - swap the red and black ones.
__________________
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
  #4   Spotlight this post!  
Unread 29-02-2016, 22:43
BenBernard BenBernard is offline
Registered User
FRC #5687 (The Outliers)
Team Role: Mentor
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Portland, ME
Posts: 45
BenBernard is on a distinguished road
Re: Autonomous running on one robot but not the other. (Labview)

Are you using the same roboRio on both? This year's version of wpilib requires some updates to the roboRio firmware, so make sure your wpilib and roboRio firmware are in sync.
  #5   Spotlight this post!  
Unread 29-02-2016, 22:46
Sandboxgod Sandboxgod is offline
Registered User
AKA: William Boyce
FRC #2923 (Aggies)
Team Role: Programmer
 
Join Date: Feb 2016
Rookie Year: 2014
Location: Rosalia
Posts: 5
Sandboxgod is an unknown quantity at this point
Re: Autonomous running on one robot but not the other. (Labview)

At the moment I have it set to just run one drive motor for two seconds. The old robot does that. What makes this so strange is the fact it's only set to run one motor yet on the new robot it it runs both drive motors backwards.
  #6   Spotlight this post!  
Unread 29-02-2016, 22:48
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,784
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: Autonomous running on one robot but not the other. (Labview)

How is it wired up? Is there by any chance a PWM splitter involved?
__________________
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
  #7   Spotlight this post!  
Unread 29-02-2016, 22:49
Sandboxgod Sandboxgod is offline
Registered User
AKA: William Boyce
FRC #2923 (Aggies)
Team Role: Programmer
 
Join Date: Feb 2016
Rookie Year: 2014
Location: Rosalia
Posts: 5
Sandboxgod is an unknown quantity at this point
Re: Autonomous running on one robot but not the other. (Labview)

They are both the same. I was told by a colleague who said he formatted both of them.
  #8   Spotlight this post!  
Unread 29-02-2016, 22:51
Sandboxgod Sandboxgod is offline
Registered User
AKA: William Boyce
FRC #2923 (Aggies)
Team Role: Programmer
 
Join Date: Feb 2016
Rookie Year: 2014
Location: Rosalia
Posts: 5
Sandboxgod is an unknown quantity at this point
Re: Autonomous running on one robot but not the other. (Labview)

There is no PWM splitter. We discussed that nut decided against it.
  #9   Spotlight this post!  
Unread 29-02-2016, 23:06
Ari423's Avatar
Happy Birthday! Ari423 Ari423 is offline
LabVIEW aficionado and robot addict
AKA: The guy with the yellow hat
FRC #5987 (Galaxia)
Team Role: Mentor
 
Join Date: Mar 2015
Rookie Year: 2012
Location: Haifa, Israel
Posts: 617
Ari423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud of
Re: Autonomous running on one robot but not the other. (Labview)

I would try going into NI MAX, restoring both roboRIOs to factory defaults, then reflashing them and reloading the code. That will get rid of any possibility of firmware or pre-existing code being the problem. If that doesn't work, I would try running the code with the wrong motor controller type. It should be pretty much the same besides some deadband stuff. We might be able to be more helpful if you post pictures of your Begin and Autonomous VIs.
__________________
2017-present: Mentor FRC 5987
2017-present: CSA for FIRST in Israel
2012-2016: Member FRC 423
2013: Programmer
2014: Head Programmer, Wiring
2015: Head Programmer, Wiring
2016: Captain, Head Programmer, Wiring, Manipulator, Chassis, CAD, Business, Outreach (basically everything)


  #10   Spotlight this post!  
Unread 29-02-2016, 23:11
Sandboxgod Sandboxgod is offline
Registered User
AKA: William Boyce
FRC #2923 (Aggies)
Team Role: Programmer
 
Join Date: Feb 2016
Rookie Year: 2014
Location: Rosalia
Posts: 5
Sandboxgod is an unknown quantity at this point
Re: Autonomous running on one robot but not the other. (Labview)

I did upload my autonomous vi but won't be able to upload a picture of it till tomorrow. Also here's my begin vi.
Attached Files
File Type: vi Begin.vi (21.2 KB, 6 views)
Closed Thread


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 02:03.

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