Go to Post I miss the years when game speculation was based on an actual hint released in the form of unintelligible strings of numbers - tcallan [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

 
Reply
Thread Tools Rate Thread Display Modes
  #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
  #2   Spotlight this post!  
Unread 01-05-2009, 16:11
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
Re: [OCCRA]: OCCRA 2008 Drive Straight Program w/PI Control

Here's a PI control powerpoint presentation that I delivered at the FIRST Robotics Conference in Atlanta,GA on April 16, 2009 that shows the principles behind the PI control software above.
__________________
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:12.
Reply With Quote
  #3   Spotlight this post!  
Unread 01-05-2009, 16:14
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 Re: [OCCRA]: OCCRA 2008 Drive Straight Program w/PI Control

Here's the latest program using EasyC Pro
Attached Files
File Type: zip Line_Follower_15_Pro.zip (3.7 KB, 103 views)
__________________
Marc Center
FIRST FRC Mentor/Coach - Team 3548 Royal Oak RoboRavens#2 - on Sabbatical 2017 season
marc.center@gmail.com
Mobile: 248-255-7377
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
[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 03:37.

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