Go to Post We’ve been chasing perfection since 2003 in the hopes of catching excellence. - Karthik [more]
Home
Go Back   Chief Delphi > Other > FIRST Tech Challenge
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 27-01-2009, 10:04
jbbjjbt jbbjjbt is offline
VRC Coach
AKA: Jon T
VRC #0177 (Twisted Botz)
Team Role: Coach
 
Join Date: Feb 2006
Rookie Year: 2004
Location: Gloucester, VA
Posts: 110
jbbjjbt is an unknown quantity at this point
Re: [FTC]: Do Servo's reset during start up?

I have submitted a question to the official Q and A for clarification under the section Robot Inspection. I think based on question 6 the servos can be powered on before the match.

I agree that the "glitch" occurs when the servos are powered on. My experience is it always goes to or toward the center position. So maybe glitch is not the correct term.

I think if the servos are not continuously updated during the disable period between when you start the autonomous program on the NXT and when the FMS start the autonomous game period, that the servo will power down and the glitch will occur when the servos get power even if you set all the positions to zero. This is my experience.
__________________
Jon Thompson
Coach
VRC 177 Twisted Botz
Sponsored by FRC 122
NASA Knights
Reply With Quote
  #2   Spotlight this post!  
Unread 27-01-2009, 13:53
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 746
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Re: [FTC]: Do Servo's reset during start up?

Quote:
Originally Posted by jbbjjbt View Post
I have submitted a question to the official Q and A for clarification under the section Robot Inspection. I think based on question 6 the servos can be powered on before the match.

I agree that the "glitch" occurs when the servos are powered on. My experience is it always goes to or toward the center position. So maybe glitch is not the correct term.

I think if the servos are not continuously updated during the disable period between when you start the autonomous program on the NXT and when the FMS start the autonomous game period, that the servo will power down and the glitch will occur when the servos get power even if you set all the positions to zero. This is my experience.
I feel the need to clarify a few things here...

When I say "Power on the servos" I mean "Turn ON the 12V with the power switch". You have to do this before the match starts otherwise your robot will not move (as the same 12V runs the DC motors). This is when the "glitch" occurs.

Next, you say "if the servos are not continuously updated during the disable period..". OK, there really is no IF here. The program templates clearly show that the servos must be disabled if the program is getting a disabled state from the FMS (which IS the case between starting your autonomous program, and the start of the actual 30 second auto period). You can verify this yourself by downloading the FMS and trying it yourself

To disable the servos, you call the "FTC Move Servo" VI and set the "Enabled?" input to FALSE. This does not actually power down the servo, but it does stop sending pulses to it, which has the effect of shutting down the control loop inside the actual servo. This will cause the servo to droop if it's under load from your manipulator.

When the match begins, the FMS send an "Enable" state to the NXT which is interpreted by YOUR program to mean "Start the autonomous sequence". At this point you can start sending commands to the servo with the "Enaled? set to true.

Now, if the first position you send is a 0 then the the servo will probably jump to the middle, since "0" isn't an actual position. A position of Zero means go to the last commanded position (which in this case has never been done.).

Bottom line: only use Zero if you want to reissue a prior command (like in a refresh loop that doesn't know what the last command was).

I'd recommend you figure out where you want the servo to be when you start your autonomus sequence and send that position as soon as you get enabled. If you do that, there will be no "glitch" or any other unwanted movement at the start of teleop.

In our case, we assume that the servos that run our puck-picker-up will have drooped to the ground, so when auto is enabled we pick them up and keep them out of the way during auto.
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
Reply With Quote
  #3   Spotlight this post!  
Unread 27-01-2009, 18:04
jbbjjbt jbbjjbt is offline
VRC Coach
AKA: Jon T
VRC #0177 (Twisted Botz)
Team Role: Coach
 
Join Date: Feb 2006
Rookie Year: 2004
Location: Gloucester, VA
Posts: 110
jbbjjbt is an unknown quantity at this point
Re: [FTC]: Do Servo's reset during start up?

Again I'm hoping for more clarification, but from the official Q & A Section 9 Robot Inspection Question 6:

A:

It is possible to have your robot "initialize" servos prior to the enable that signals the start of the autonomousportion of the match. It is as straight-forward as inserting the code prior to waiting for the enable signal.


So I incorrectly said we're powering the servo in the disable section of the code. We're powering the servo (to keep it in one position) in the section of the autonomous code where the bluetooth command is read. This seems legal to me based on the above Q & A. We haven't changed the disable section.

But during the beginning of the match before the autonomous is enabled essentially we are turning on the servo where the blutooth is read and the disabled code section is turning off the servos many times a second. Hence it does jiggle but stays where we need it.
__________________
Jon Thompson
Coach
VRC 177 Twisted Botz
Sponsored by FRC 122
NASA Knights
Reply With Quote
  #4   Spotlight this post!  
Unread 27-01-2009, 18:25
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 746
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Re: [FTC]: Do Servo's reset during start up?

Quote:
Originally Posted by jbbjjbt View Post
A:

It is possible to have your robot "initialize" servos prior to the enable that signals the start of the autonomousportion of the match. It is as straight-forward as inserting the code prior to waiting for the enable signal.[/color]

But during the beginning of the match before the autonomous is enabled essentially we are turning on the servo where the blutooth is read and the disabled code section is turning off the servos many times a second. Hence it does jiggle but stays where we need it.
The original Q & A implied (to me) that you could set the servo position ONCE before starting to wait for the enable. Thereby truly being "disabled" before the match. But that's just my interpretation.

Note that the Q & A was written well before the new templates were created. I hardly think that rapidly enabling and disabling the servo is what they had in mind when they created the new template..... All that jittering is just going to draw attention to the fact that you are driving the servo while the robot is meant to be disabled. Any "field safety" gained by disabling the servos is lost by you reenabling them right away.

If you really feel like arguing on the day, it I guess it's up to you, because there don't seem to be any clear rulings regarding software other than "Use the templates". It may just fall on you to convince the inspector that your robot is "safe".
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
[FTC]: Non-technical topics during interview ManicMechanic FIRST Tech Challenge 0 28-12-2007 00:53
[FTC]: [FTC]: Ontario Provincial FTC Start/End Times cbhl FIRST Tech Challenge 8 16-12-2007 13:37
Camera won't initialize when reset from RC - reset from OI and Power-up works, krunal Programming 7 15-01-2007 00:13
In a Pickle: Servo's stay at 127 vector023 Programming 11 14-02-2006 17:54
Servo's and EduBots? DanL Motors 6 13-01-2003 10:11


All times are GMT -5. The time now is 17:59.

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