Go to Post Being the GDC is not an easy job, anything can happen. Lunacy happened ::rtm:: - Conor Ryan [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 11-05-2004, 12:37
sanddrag sanddrag is offline
On to my 16th year in FRC
FRC #0696 (Circuit Breakers)
Team Role: Teacher
 
Join Date: Jul 2002
Rookie Year: 2002
Location: Glendale, CA
Posts: 8,510
sanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond repute
Need PBASIC Balance Code Quick

By the end of today I need some PBASIC code that will at least attempt to balance this vehicle I am working on. The Demo code for the tilt sensor is here http://www.parallax.com/dl/src/prod/...25democode.zip I am only using the Y axis.

My motor speed controls are on pins 12 and 13. I need the speed of the motors to increase proportionally as the angle of tilt increases. The motor controller needs to get a PULSOUT signal. 950 full speed one direction, around 750 is neutral, and about 550 is full speed the other direction. It needs to pause for 20ms between pulses. The tilt angle will be no more than about 6 degrees in each direction. If we can use the straight gyro output instead of converting it to degrees the BASIC stamp will run better because it gets a little bogged down with that.

It is a BS2 I am using.

If you have any more questions I'll be able to answer them at about 3:30 PM pacific time today. I need to have this code hopefully by 8:00 PM pacific time today.

If someone can help me out ina pinch it would be most certainly appreciated.
__________________
Teacher/Engineer/Machinist - Team 696 Circuit Breakers, 2011 - Present
Mentor/Engineer/Machinist, Team 968 RAWC, 2007-2010
Technical Mentor, Team 696 Circuit Breakers, 2005-2007
Student Mechanical Leader and Driver, Team 696 Circuit Breakers, 2002-2004
  #2   Spotlight this post!  
Unread 11-05-2004, 13:02
Greg McCoy's Avatar
Greg McCoy Greg McCoy is offline
boiler up!
FRC #3940 (CyberTooth)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 2002
Location: Kokomo, IN
Posts: 484
Greg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond repute
Send a message via AIM to Greg McCoy
Re: Need PBASIC Balance Code Quick

This may be of some help:

http://www.chiefdelphi.com/forums/pa...gle&paperid=10

This was before my time, but it's the code used on our 2001 robot for balancing on the ramp. I realize that this is a different sensor, but I'm assuming the same general idea is there. Good luck!
Closed Thread


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
heres the code. y this not working omega Programming 16 31-03-2004 15:18
Inserting Naviagation code into Default code? actorindp Programming 3 28-01-2004 18:12
PBASIC 2.5 Code on the RC Goya Programming 2 12-01-2003 17:00
2003 PBasic default code from Innovation First ttedrow Programming 0 06-01-2003 11:18
Need help with PBASIC Code J. Stofflett Programming 3 06-02-2002 22:49


All times are GMT -5. The time now is 02:50.

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