Go to Post May your shirts be full of buttons, yours inspiration be plentiful, and your error messages be few. - Barry Bonzack [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 20-01-2008, 13:42
FeuerMadchen FeuerMadchen is offline
Registered User
AKA: Allie
FRC #1768 (RoboChiefs)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Stow, MA
Posts: 2
FeuerMadchen is an unknown quantity at this point
Turning "Safety" Code

Okay, so I'm new to programming for the robot (this is the first year that I've made a significant contribution), and I came up with a weird idea. What if an automatic "slow-down" was implemented into the robot during turns so that if the driver is less than capable (not saying ours is, just in general) of understanding that the robot needs to slow down for a turn, the robot would automatically slow down?

I outlined my thoughts in the following part of the code (which I put under void Teleop(void) ):

Quote:
if(p1_x >= 0 && p1_x <= 56)
{
pwm13 - 20;
pwm15 - 40;
}
else if(p1_x >= 57 && p1_x <= 124)
{
pwm13 - 10;
pwm15 - 20;
}
else if(p1_x >= 125 && p1_y <= 129)
{
}
else if(p1_x >= 130 && p1_x <= 198)
{
pwm13 - 20;
pwm15 - 10;
}
else if(p1_x >= 199 && p1_x <= 255)
{
pwm13 - 40;
pwm15 - 20;
}
I don't know where to go from here. Maybe change it so that it only slows down while accelerating beyond a certain point?

(Feel free to use this if you want, by the way.)
__________________
1 of 2 female members of the team, ftw!
 


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
"Hopping" With tank style turning. QuantumNinja Technical Discussion 22 19-02-2006 15:11
Modified default code gives "code violation" scottmso Programming 8 10-02-2006 23:17
Code error on RC after downloading "bells and whistles" version of Kevins camera code DanDon Programming 6 10-01-2006 18:07
New NEMO White Papers! "Creating a Killer Packet" and "25 Ways to Sponsor" Jessica Boucher Team Organization 0 10-08-2005 10:55
"Thunderbirds" Vs. "Team America" Which one will rule the box office? Elgin Clock Chit-Chat 3 07-09-2004 19:53


All times are GMT -5. The time now is 23:13.

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