Go to Post Nascar was one of the first things i though when the unveiled this years competitions...... silly left turns... they hurt right turns feelings :rolleyes: - Miniflash [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 19-02-2012, 18:35
Hebrew Hebrew is offline
Registered User
FRC #4228 (iRobotics)
Team Role: Programmer
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Minnesota
Posts: 84
Hebrew is an unknown quantity at this point
Re: Autonomous

So before I was using a while loop but now decided to switch it up to make it easier...now all our robot does is have the wheels move for a split second and then it shoots the piston. What am I doing wrong?

Reply With Quote
  #2   Spotlight this post!  
Unread 19-02-2012, 20:30
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: Autonomous

You don't explain what the robot does or doesn't do. I'll transcribe what I'd expect that to do.

It sets the RobotDrive to 0.5, which is normally backwards pretty fast. It leaves it set that way for ten seconds. Then it kills power to the RobotDrive and lets it coast/brake for four seconds. Then it sets the relay to forward.

Issues/Questions:
Unless your normal teleop negates the joystick values that it sends to the RobotDrive, this looks like it will drive backwards.

Unless your turn off the Safety Mechanism for RobotDrive, after 100ms, the motors will be disabled. If you develop carefully and want to disable it, you can do so from the Advanced palette of RobotDrive.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 19-02-2012, 20:50
Hebrew Hebrew is offline
Registered User
FRC #4228 (iRobotics)
Team Role: Programmer
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Minnesota
Posts: 84
Hebrew is an unknown quantity at this point
Re: Autonomous

Driving backwards is the goal for how the robot drive is currently set up. I entered random numbers for the time each task is done just to make sure it follows it, I know that I have the values up VERY high currently.

Thanks for the info on why it is stopping though! I am not with the robot right now so I cannot experiment for myself so I am wondering: What .vi do I place instead of the current drive vi? I am confused as to what I am exactly doing for it to not shut off in 100ms. Another issue: It does not usually wait 4 seconds like I have it set to before the piston is fired, do I have to do something there or was the immediate stopping of the motors causing it to speed up or something?
Reply With Quote
  #4   Spotlight this post!  
Unread 19-02-2012, 22:31
MAldridge's Avatar
MAldridge MAldridge is offline
Lead Programmer
AKA: Rube #1
FRC #0418 (LASA Robotics)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Austin
Posts: 117
MAldridge will become famous soon enoughMAldridge will become famous soon enough
Re: Autonomous

you don't need to replace it, but you need to disable the safety threads on those motors. To do that, go to robot drive and then hit the advanced functions button, there you will find the safety config VI.

You just need to connect it in front of the actual drive VI that sets the output. Make sure you have the robot on blocks until you know EXACTLY what you are doing with the autonomous. Once you disable the safety, the robot will move until you tell it to stop.

Good Luck.
__________________
'Why are you a programer?' --Team Captain
'Because the robot isn't complicated enough!' --Me
Reply With Quote
  #5   Spotlight this post!  
Unread 20-02-2012, 08: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: Autonomous

Please do start with it on blocks, but to be clear, eStop still works and cannot be disabled. Safety Config disabling is specific to the update heartbeat.

Greg McKaskle
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 22:10.

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