Go to Post Clearly they're releasing the game hint on 12/21/12 because they know the world's going to end, and they want to keep FIRSTers happy and distracted until the very end. - Kevin Sevcik [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 13-01-2009, 18:46
ttldomination's Avatar
ttldomination ttldomination is offline
Sunny
no team
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2007
Location: Roanoke, TX
Posts: 2,066
ttldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond repute
[FTC]: Do Servo's reset during start up?

Hey Guys,

I was wondering if the Servos reset to their central position during start up. For any people that have gone to competition, like..when the robot is powered up, do the servos return to their zero position or do they remain where they are? Or is the current position set as the zero..?

I was wondering how that works.

Thankx
__________________
1261: 2007-2012
1648: 2013-2014
5283: 2015
Reply With Quote
  #2   Spotlight this post!  
Unread 13-01-2009, 19:49
wilsonmw04's Avatar
wilsonmw04 wilsonmw04 is offline
Coach
FRC #1086 (Blue Cheese)
Team Role: Teacher
 
Join Date: Dec 2006
Rookie Year: 2007
Location: Midlothian, VA
Posts: 1,887
wilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond repute
Re: [FTC]: Do Servo's reset during start up?

I believe that the servos try and set to zero at start up. You can change this with coding I think. I believe that's how we solved our problem. I'll check with my Programmers and have them post what we did.
__________________
Currently: Coach FRC 1086/FTC 93
2006-2011 Coach FRC 2106/FTC 35
If you come to a FRC event to see a robot competition, you are missing the point.
Reply With Quote
  #3   Spotlight this post!  
Unread 13-01-2009, 20:50
ttldomination's Avatar
ttldomination ttldomination is offline
Sunny
no team
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2007
Location: Roanoke, TX
Posts: 2,066
ttldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond repute
Re: [FTC]: Do Servo's reset during start up?

Hm...It would seem to me that the current position at which the servos rest would be set to zero....

But i'm not sure.
__________________
1261: 2007-2012
1648: 2013-2014
5283: 2015
Reply With Quote
  #4   Spotlight this post!  
Unread 13-01-2009, 21:46
wilsonmw04's Avatar
wilsonmw04 wilsonmw04 is offline
Coach
FRC #1086 (Blue Cheese)
Team Role: Teacher
 
Join Date: Dec 2006
Rookie Year: 2007
Location: Midlothian, VA
Posts: 1,887
wilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond repute
Re: [FTC]: Do Servo's reset during start up?

If I remember correctly, the position the servo hits when you first supply power to the servo is the "zero" position. It's the same thing that's going to happen when it enter competition at the beginning of the game. It doesn't matter what position you put it into before the game. The zero is an absolute value and can't be changed. This can be useful when programing though. Zero will be the same position no matter where it was positioned before the start.
__________________
Currently: Coach FRC 1086/FTC 93
2006-2011 Coach FRC 2106/FTC 35
If you come to a FRC event to see a robot competition, you are missing the point.
Reply With Quote
  #5   Spotlight this post!  
Unread 14-01-2009, 07:10
emmell's Avatar
emmell emmell is offline
Murphy was an Optimist!
AKA: Mannie Lowe
no team (Radbotics, RoboKnights, CircuitRunners, Oscar, and more...)
Team Role: Coach
 
Join Date: Dec 2005
Rookie Year: 2005
Location: Marietta, GA
Posts: 178
emmell is just really niceemmell is just really niceemmell is just really niceemmell is just really niceemmell is just really nice
Re: [FTC]: Do Servo's reset during start up?

Is the value zero (0) or is the value 128? Servos can range from 0-255 so the center position would be 128, right?
__________________
Mannie Lowe
FIRST Program Manager - Center for Mathematics and Science Education - University of Mississippi
Mississippi FIRST Tech Challenge Affiliate Partner


Reply With Quote
  #6   Spotlight this post!  
Unread 14-01-2009, 07:49
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?

Quote:
Originally Posted by emmell View Post
Is the value zero (0) or is the value 128? Servos can range from 0-255 so the center position would be 128, right?
Best I can tell all the servos head to center (127) whenever they first get power. This is with Labview. Does anyone know if it happens with RobotC?

Somewhere in the Q and A, it says you can send the servo's to a starting position before autonomous, so that you start in the 18" cube. The only problem with this is that the servos could be powered a long time waiting for the match to start.
__________________
Jon Thompson
Coach
VRC 177 Twisted Botz
Sponsored by FRC 122
NASA Knights
Reply With Quote
  #7   Spotlight this post!  
Unread 14-01-2009, 11:44
ShawnH ShawnH is offline
Registered User
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jan 2008
Rookie Year: 2002
Location: Arlington Heights, IL
Posts: 7
ShawnH is an unknown quantity at this point
Re: [FTC]: Do Servo's reset during start up?

Under RobotC, servos will not move after a power up. For us, we can easily move the servos while the robot is waiting for the auto-op to start. If you assign a value (0~255) in your program, servos would try to move that that location. From this point, a servo would always move to the location where the firmware told it to move to in the last loop.

In the newest RobotC templates, you can initialize servo values after a power up in your code. It does not have to be the center values.
Reply With Quote
  #8   Spotlight this post!  
Unread 14-01-2009, 16:38
ttldomination's Avatar
ttldomination ttldomination is offline
Sunny
no team
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2007
Location: Roanoke, TX
Posts: 2,066
ttldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond repute
Re: [FTC]: Do Servo's reset during start up?

Quote:
Originally Posted by ShawnH View Post
Under RobotC, servos will not move after a power up. For us, we can easily move the servos while the robot is waiting for the auto-op to start. If you assign a value (0~255) in your program, servos would try to move that that location. From this point, a servo would always move to the location where the firmware told it to move to in the last loop.

In the newest RobotC templates, you can initialize servo values after a power up in your code. It does not have to be the center values.
So, if we're using RobotC, the servos *DO NOT* center when powered up?
__________________
1261: 2007-2012
1648: 2013-2014
5283: 2015
Reply With Quote
  #9   Spotlight this post!  
Unread 23-01-2009, 16:50
PackersFan PackersFan is offline
Registered User
no team
 
Join Date: Jan 2009
Location: PA
Posts: 6
PackersFan is an unknown quantity at this point
Re: [FTC]: Do Servo's reset during start up?

When we are powering up the servos head to zero after the first time we press a button. Anyone know why? This is an issue because this missaligns the servos. I think I have a workaround (make a button not in use align the servos, but I would prefer not to have to do that).
Reply With Quote
  #10   Spotlight this post!  
Unread 23-01-2009, 18:05
ttldomination's Avatar
ttldomination ttldomination is offline
Sunny
no team
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2007
Location: Roanoke, TX
Posts: 2,066
ttldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond repute
Re: [FTC]: Do Servo's reset during start up?

. This is what I have recently figured out.

The servos are naturally positioned and I believe they do automatically set to the 0 position when you start them. But inside the FTC template, there is a new section for initialize position. Inside that section try posting this code.

servo[servoA] = ServoValue[ServoA];

this should keep servoA exactly where it is. (Check my syntax, I don't think that's exactly it.)
__________________
1261: 2007-2012
1648: 2013-2014
5283: 2015
Reply With Quote
  #11   Spotlight this post!  
Unread 23-01-2009, 21:15
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: 747
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
Red face Re: [FTC]: Do Servo's reset during start up?

Quote:
Originally Posted by wilsonmw04 View Post
I believe that the servos try and set to zero at start up. You can change this with coding I think. I believe that's how we solved our problem. I'll check with my Programmers and have them post what we did.
When power is applied to the servo controller the servos get a momentary glitch which makes them twitch, but they are not held in that position.
Then unless you send a servo command the servo will just stay where you put them ( by hand ).
In labview, servo commands go from 1 - 255. A servo position of 0 means go to the last commanded position. Once you send a servo command, the servo goes there and holds that position. If you don't issue another command for a few seconds, the servo will power down.
__________________
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
  #12   Spotlight this post!  
Unread 24-01-2009, 09:33
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?

Quote:
Originally Posted by PhilBot View Post
When power is applied to the servo controller the servos get a momentary glitch which makes them twitch, but they are not held in that position.
Then unless you send a servo command the servo will just stay where you put them ( by hand ).
In labview, servo commands go from 1 - 255. A servo position of 0 means go to the last commanded position. Once you send a servo command, the servo goes there and holds that position. If you don't issue another command for a few seconds, the servo will power down.
Do you agree that the momentary glitch at power up sends them toward the middle 127 (or 8) ?

This is enough to cause issues with buckets dumping or arms unfolding. Setting them to position ahead of time in autonomous may be bad if it takes a long time for the match to start.
__________________
Jon Thompson
Coach
VRC 177 Twisted Botz
Sponsored by FRC 122
NASA Knights
Reply With Quote
  #13   Spotlight this post!  
Unread 24-01-2009, 09:47
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: 747
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
Do you agree that the momentary glitch at power up sends them toward the middle 127 (or 8) ?

This is enough to cause issues with buckets dumping or arms unfolding. Setting them to position ahead of time in autonomous may be bad if it takes a long time for the match to start.
As glitches are.... you shouldn't assume any particular direction of motion.

By definition, before the match starts, your software should not be driving the servos at all. Once you start your Auto program, all the outputs should be disabled until the program is "Enabled" by the FMS. This is definately true of the driver wheels, but also true of the servos (based on the current program templates).

The program inspection process is designed to test this. I don't know how critical they will be of servo motion when disabled, but if an inspector gets fussy, it may put your entire program in question.

Since the servo glitch occurs when YOU turn the 12V power on, then you are free to re-position it after the glitch has occured. Then when the program is "Enabled" it can be told to move to that same starting position, which should have the effect of just locking the arm in that position.

To try out all these scenarios, you should download the Field Management Software and run a "test" match. Goto the Software section of the USFIRST.org FTC page.
__________________
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
  #14   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
  #15   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: 747
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
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 03:18.

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