Go to Post The 2008 team is not the 2007 team and won't be the 2009 team. Every year is a new year and a new opportunity for growth and development as a FIRST team. It's very cool. - JaneYoung [more]
Home
Go Back   Chief Delphi > Competition > OCCRA > OCCRA Programming
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
  #1   Spotlight this post!  
Unread 18-12-2008, 16:24
marccenter's Avatar
marccenter marccenter is offline
Registered User
FRC #3548 (RoboRavens2)
Team Role: Coach
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Royal Oak
Posts: 406
marccenter has a spectacular aura aboutmarccenter has a spectacular aura about
Smile [OCCRA]: OCCRA 2008 Drive Straight Program w/PI Control

Dear Teams,

Quote:
Originally Posted by marccenter View Post
Dear Teams,
This is an example of a driving straight full function system with PI (proportional-integral control) based on encoder feedback to drive straight. The system uses encoders directly attached to Motor1 and Motor 2. The difference between the two encoders is used to create both a proportional and integral correction term. The proportional correction term is basically one-fourth of the encoder difference, limited to 25. The integral correction term increases or decreases by one every time through the main loop. The integral correction term is limited to plus 10 and zero. There is a base speed term used to creep forward. Motor 1 goes in the direction from 127 to zero to increase in speed. So, the final correction becomes Motor1_speed = Motor1_FwdCreep - Motor1_PropAdapt (0 to 25) - Motor1_IntegralAdapt(zero to 10). Motor2_speed is similar but goes from 127 to 254 to increase speed. The final correction becomes Motor2_speed = Motor2_Fwd_ reep + Motor2_PropAdapt (0 to 25) + Motor2_IntegralAdapt(zero to 10).

I tested the VEX robot at home on a hardwood floor with a ball transfer on the front of the robot (inverted, steel mouse ball) instead of VEX omni-wheels to enhance mechanical movement capaiblities. It drove reasonably straight on the floor for about 8 feet.

Intelitek Easy_C V2.8.0.5 licensed version was utilized.
__________________
Marc Center
FIRST FRC Mentor/Coach - Team 3548 Royal Oak RoboRavens#2 - on Sabbatical 2017 season
marc.center@gmail.com
Mobile: 248-255-7377

Last edited by marccenter : 09-05-2016 at 22:11.
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
[OCCRA]: OCCRA Scores - Overall for 2008 Season physics_guy47 OCCRA 0 09-11-2008 19:18
[OCCRA]: 2008 OCCRA VEX Carpet Playing Field - Home Depot marccenter OCCRA Programming 1 06-11-2008 09:57
[OCCRA]: OCCRA 2008 - Upgrade to Easy_C V2 for this year marccenter OCCRA Programming 1 29-10-2008 15:09
[OCCRA]: OCCRA 2008 Line Follower - Program 2 marccenter OCCRA Programming 0 27-09-2008 00:27
[OCCRA]: OCCRA 2008 Line Follower - Program 1 marccenter OCCRA Programming 0 18-09-2008 11:32


All times are GMT -5. The time now is 21:43.

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