Go to Post Who wants to see your robot get their butt handed to them? - Joe_Widen [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 28-03-2004, 22:52
Josh Siegel's Avatar
Josh Siegel Josh Siegel is offline
lurker
#0448 (Crandroids)
 
Join Date: Nov 2003
Rookie Year: 2003
Location: Bloomfield Hills, Michigan
Posts: 67
Josh Siegel will become famous soon enough
Send a message via AIM to Josh Siegel Send a message via MSN to Josh Siegel
Speed limiting code from last year in C?

I've been working on our EduBot programming all week, and I haven't been able to successfully port over the speed-limiting code from last year (jumper on SW7) to C. I'm trying to cut speed for debug purposes with the variable 'topspeed' (0-254), and also have a table of volts->topspeed variable to mantain speed for DR programs, etc. Sadly, even if it compiles, it makes one of the motors just pulse on and off and the other continues at full speed.

I wish I could post all the ways I tried, I think I still have two snippets left, but I thought it would be best to ask if anyone here has done/knows how to make this code fuction without having to deal with my crappy, innefficient ways 'n such.

I can post my code without the limiting section if that will help anyone.

pwm01 is left motor drive, pwm02 is right motor drive. Thanks so much!
 


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
Great year. archiver 1999 0 23-06-2002 22:46
Wow! what a year archiver 2000 8 23-06-2002 22:43
2000 not a new Millenium archiver 2000 7 23-06-2002 22:17
"Motors and Drive train edition" of Fresh From the Forum Ken Leung CD Forum Support 6 29-01-2002 12:32
speed control punarhero Technical Discussion 11 24-01-2002 18:03


All times are GMT -5. The time now is 18:17.

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