Go to Post Patience is the key to FIRST. - Pavan Dave [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
  #6   Spotlight this post!  
Unread 10-01-2007, 08:59
SuperBK's Avatar
SuperBK SuperBK is offline
Registered User
AKA: BrianK
FRC #1225 (Amperage Robotics)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Henersonville, NC
Posts: 358
SuperBK is just really niceSuperBK is just really niceSuperBK is just really niceSuperBK is just really nice
Re: pwms

I think what your are asking is how to turn on a motor. Just setting the variable pwm01 will turn on (or off) the motor connected to the first pwm output. The reason all you need to do is set it is because that variable is returned to the master controller and it "writes" it to the register that turns on the motor.

In the default code its just set to the value from the joystick:
pwm01 = p1_y;

Note: to turn a motor off, set it to 127. Values less than 127 are reverse, values greater than 127 are forward. Its range is 0-255.

You can see all the variable you get for input and that you can set for output in the header file ifi_aliases.h

Brian
 


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
Good-looking PWMs: is it possible? Chriszuma Electrical 2 10-02-2006 00:25
PWMs Active in Programming Mode? ldeffenb Control System 4 14-01-2006 07:35
pwms for relays reilly Motors 3 18-02-2005 15:02
pwms 13 and 15 in autonomous mode Chris Bright Programming 1 24-02-2004 22:25
Mapping Buttons to PWMs actorindp Programming 9 10-02-2004 11:11


All times are GMT -5. The time now is 20:52.

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