Go to Post Are you asking if I can pick up electrons? I'm positive. - Gary Dillard [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 16-01-2006, 18:25
railerobotics's Avatar
railerobotics railerobotics is offline
Registered User
FRC #0935
 
Join Date: Jan 2006
Location: Newton, KS
Posts: 190
railerobotics will become famous soon enough
Reversing motors

We are using a tank type driving system. How do I make the motors on one side go in reverse.
  #2   Spotlight this post!  
Unread 16-01-2006, 18:27
devicenull devicenull is offline
Robot? We need a robot?
no team
 
Join Date: Sep 2004
Rookie Year: 1234
Location: n/a
Posts: 359
devicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nice
Re: Reversing motors

pwmX = 255 - pwmX

Put that at the end of your code. Or you can switch around the wires going to the speed controller.
  #3   Spotlight this post!  
Unread 16-01-2006, 18:32
railerobotics's Avatar
railerobotics railerobotics is offline
Registered User
FRC #0935
 
Join Date: Jan 2006
Location: Newton, KS
Posts: 190
railerobotics will become famous soon enough
Re: Reversing motors

It gives me a syntax error
  #4   Spotlight this post!  
Unread 16-01-2006, 18:35
Mr. Steve's Avatar
Mr. Steve Mr. Steve is offline
No relation to Mrs. Steve
#1626 (Falcon Robotics)
 
Join Date: Nov 2004
Rookie Year: 2005
Location: NJ
Posts: 34
Mr. Steve is an unknown quantity at this point
Re: Reversing motors

You need to substitute the X for the number.


An easier way would be to just take the motor wires running to the Victor speed controllers and switch them, plugging the red where the black was, and the black where the red was.

Just make sure to do this for the wires going from the motor to the Victor, not from the Victor to the panel.
__________________
Falcon Robotics
  #5   Spotlight this post!  
Unread 16-01-2006, 18:35
devicenull devicenull is offline
Robot? We need a robot?
no team
 
Join Date: Sep 2004
Rookie Year: 1234
Location: n/a
Posts: 359
devicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nice
Re: Reversing motors

by pwmX I mean pwm01.. 16 depending on which you are using.. Without seeing the actual code, I'm not sure why it would cause a syntax error.
  #6   Spotlight this post!  
Unread 16-01-2006, 18:36
railerobotics's Avatar
railerobotics railerobotics is offline
Registered User
FRC #0935
 
Join Date: Jan 2006
Location: Newton, KS
Posts: 190
railerobotics will become famous soon enough
Re: Reversing motors

Oops, I put the code in the wrong place.
Now it works
Thanks for your help.
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
Looking for practice motors & extra tape drive parts? archiver 2000 1 23-06-2002 22:54
Suppose you want seat motors... archiver 2000 0 23-06-2002 22:50
"Motors and Drive train edition" of Fresh From the Forum Ken Leung CD Forum Support 6 29-01-2002 12:32
Drill Motors TF8 Motors 19 12-12-2001 13:13


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

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