Go to Post Haha, I applaud your efforts to read into the actions of the GDC, but I feel like trying to do so is like shooting at a target, in the dark, at a mile away, with a sawed off shotgun. - ttldomination [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Spotlight this post!  
Unread 24-02-2010, 15:33
buddyb's Avatar
buddyb buddyb is offline
Registered User
FRC #1885 (ILITE)
Team Role: Programmer
 
Join Date: Dec 2009
Rookie Year: 2008
Location: Haymarket, VA
Posts: 65
buddyb has a spectacular aura aboutbuddyb has a spectacular aura aboutbuddyb has a spectacular aura about
Re: [FTC]: 4 Stage Gear Train HELP!

I agree with Abra. Our team uses 1:9, and it serves us really well. 1:36 seems like a bit much.

If you need to retain your current ratio, though, try code like this (pseudocode; will not compile in anything; you need to run this as a separate task, or integrate it in to your main loop such that it is executed without an explicit wait)
Code:
//5 for all of the values is arbitrary. For faster revving, go with 10 or so.
IF(abs(motor_power - desired_motor_power) < 5)
    motor_power = desired_motor_power;
ELSE IF(motor_power > desired_motor_power)
    motor_power = motor_power - 5;
ELSE
    motor_power = motor_power + 5;
WAIT 100 milliseconds;
If implemented, this code will get you from 0 to 100 power in 2 seconds. If you want to go from 0->100 in less time, increase 5 to anything you want. It is *highly* advised that you not decrease the wait time much, because if you go from 0->100 in 20ms, there's hardly any point to a revving system.
__________________
FRC - Team 1885 - Programmer.
Reply With Quote
 


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
FP Gearbox: Last stage gear? Manoel Motors 5 04-02-2009 16:12
[FTC]: Rookie Team Needs Help With Tetrix FTC Kit! rjustice4 FIRST Tech Challenge 8 05-10-2008 09:44
[FTC]: [FTC]: HELP! Multiple fields set up!!! galewind FIRST Tech Challenge 10 16-12-2007 09:53
2 Gear Drive Train AT man General Forum 31 12-02-2003 19:05


All times are GMT -5. The time now is 09:40.

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