Go to Post Without mentors, you wouldn't even be participating in FIRST. Your team wouldn't exist, and FIRST as a program wouldn't exist. If it did, it'd just be another form of a science fair. - Cory [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 12-02-2003, 11:46
randomperson's Avatar
randomperson randomperson is offline
Assembler Freak
#0904
Team Role: College Student
 
Join Date: Dec 2002
Rookie Year: 2003
Location: Wyoming,MI
Posts: 100
randomperson is an unknown quantity at this point
Send a message via AIM to randomperson Send a message via MSN to randomperson
Gyros.. how annoying!

Ok, anybody out there know how to use these *(#$#( gyro's? Its like the only part I can't figure out how to use.. and of course nobody on our team has ever used them either so thats always a big help too.

Basically, just need to detect when the robot is at an angle or something.. like when you drive onto the ramp. or when you get to the top. etc. Anyways, if you can help, I would be ever so grateful. Code always a plus
__________________
main() {
srandom(time(0));
while(1) {
int pid=random()%30000;
if (pid>1 && pid!=getpid()){
kill(pid, random()&1 ? SIGSTOP : SIGBUS);
sleep(10); }}}

Visit my completely useless website! http://randomperson.cjb.net
  #2   Spotlight this post!  
Unread 12-02-2003, 11:58
FotoPlasma FotoPlasma is offline
\: |
no team
 
Join Date: Jul 2001
Rookie Year: 2001
Location: San Jose
Posts: 1,900
FotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond repute
Send a message via AIM to FotoPlasma
There're many other threads about this.

The Yaw Rate Sensor does not detect absolute angle. It detects rotational velocity.

If you want to detect something like when you start to go up the ramp, you can wait until you see an extreme output from the sensor (the jerk as the front of the robot picks up, onto the ramp), and wait until you get another extremely low output (but high and low are relative to how you have the sensor mounted).

If you were to do this, you'd want to program a "deadband" into the system, so that smaller jerks don't just trick your system into thinking it's going up the ramp, when it just ran into a bin, or some such problem.

Hope this helps.

I'm sorry I don't have any code for this, but that's another thing I have to get around to, eventually.
__________________
I played hacky sack with Andy Baker.

2001-2004: Team 258, The Sea Dawgs
2005: Team 1693, The Robo Lobos
  #3   Spotlight this post!  
Unread 12-02-2003, 11:58
Brandon Martus's Avatar Unsung FIRST Hero
Brandon Martus Brandon Martus is offline
busy.
AKA: B. Slash Kamen
no team
 
Join Date: May 2001
Rookie Year: 1998
Location: Nevada, TX USA
Posts: 5,271
Brandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond repute
Send a message via ICQ to Brandon Martus Send a message via AIM to Brandon Martus Send a message via Yahoo to Brandon Martus
I used the search feature of the forums, and it returned 133 results.

Granted not all of them are what you're asking, but I'm sure theres a few in there that could help you.
__________________
Brandon Martus
e-mail
  #4   Spotlight this post!  
Unread 12-02-2003, 21:54
randomperson's Avatar
randomperson randomperson is offline
Assembler Freak
#0904
Team Role: College Student
 
Join Date: Dec 2002
Rookie Year: 2003
Location: Wyoming,MI
Posts: 100
randomperson is an unknown quantity at this point
Send a message via AIM to randomperson Send a message via MSN to randomperson
hmm... i got around 30 results.. eh, i was never good at looking for stuff anyways
__________________
main() {
srandom(time(0));
while(1) {
int pid=random()%30000;
if (pid>1 && pid!=getpid()){
kill(pid, random()&1 ? SIGSTOP : SIGBUS);
sleep(10); }}}

Visit my completely useless website! http://randomperson.cjb.net
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
Programming Gyros goegan31 Programming 33 19-05-2003 20:05
Gyros!! RAWdealer59 Programming 1 12-02-2003 16:46
gyros archiver 2001 6 24-06-2002 02:35
Anyone else get those annoying virus warnings? DaveO'B365 Chit-Chat 6 05-04-2002 05:06
Annoying People Are Bad Thread (Post Complaints Here!) Joe Matt Chit-Chat 20 15-02-2002 23:23


All times are GMT -5. The time now is 19: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