Go to Post water electricity=bad - Chuck Glick [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 24-01-2013, 22:06
chadwick chadwick is offline
Registered User
FRC #4375
 
Join Date: Jan 2013
Location: Ishpeming, MI
Posts: 5
chadwick is an unknown quantity at this point
Robot keeps rolling / won't stop!

We recently just switched from the JAG to the Victor for the drive motors. I have changed the code accordingly.

When we put the robot into teleoperated mode, the robot will move around and respond to all input given by the controller. When we center the joystick (let go) the motors stop, and the robot coasts to a stop (Which, at full/medium speed, can cover quite a distance). I also have a break button programmed to button one, and tried to use that to stop. When I press the button, the motor values are set to 0, the motors stop, but the robot will keep coasting.

Any help would be greatly appreciated!
Reply With Quote
  #2   Spotlight this post!  
Unread 24-01-2013, 22:10
Racer26 Racer26 is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Beaverton, ON
Posts: 2,229
Racer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond repute
Re: Robot keeps rolling / won't stop!

Set your victors to brake mode.
Reply With Quote
  #3   Spotlight this post!  
Unread 24-01-2013, 22:20
chadwick chadwick is offline
Registered User
FRC #4375
 
Join Date: Jan 2013
Location: Ishpeming, MI
Posts: 5
chadwick is an unknown quantity at this point
Re: Robot keeps rolling / won't stop!

Didn't even notice that! The ones we've used in the past have been set to that without having to mess with it. This year the ones we got were set to coast.

Is it allowed to use a limit switch and servo to switch between the two? If not, is there a legal way to do so?
Reply With Quote
  #4   Spotlight this post!  
Unread 25-01-2013, 06:46
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: Robot keeps rolling / won't stop!

It may also be useful to put the robot on blocks and verify that 0 means no wheel rotation. If it doesn't, you may want to calibrate the victors.

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 25-01-2013, 09:53
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is online now
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,708
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Robot keeps rolling / won't stop!

Quote:
Originally Posted by chadwick View Post
Didn't even notice that! The ones we've used in the past have been set to that without having to mess with it. This year the ones we got were set to coast.

Is it allowed to use a limit switch and servo to switch between the two? If not, is there a legal way to do so?
You can do the limit switch and servo trick to switch it. It's legal, near as I can tell from R65 and R68.

I swear there was a way to do this with a digital IO, but I can't find it at the moment and the Victor User Guide suggests using the limit switch+servo method. Following the manual's recommendations might be the smarter move, even if it is a bit clunky.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
Reply With Quote
  #6   Spotlight this post!  
Unread 25-01-2013, 10:41
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: Robot keeps rolling / won't stop!

I think we used to connect separate digital output signal lines to the break and to the coast to toggle between them, but I don't know if the 888 has changed that or not.
Experimentation is required.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
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 21:49.

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