Go to Post The more women we have as 'rock stars' in FIRST, the more girls we'll see celebrating math and science and the doors they can open. - JaneYoung [more]
Home
Go Back   Chief Delphi > Old Forum Archives > 2000
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 23-06-2002, 22:55
archiver archiver is offline
Forum Archival System
#0047 (ChiefDelphi)
 
Join Date: May 2001
Location: Pontiac, MI
Posts: 21,214
archiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond repute
Programming

Posted by Justin Stiltner.

Student on team #388, Epsilon, from Grundy High School and NASA, American Electric Power, Town of Grundy.

Posted on 1/30/2000 10:53 PM MST



I hope sombody knows how to accomplish this

I need to be able to control a pwm with a button and a joystick, specifically I need to be able to move the joystick and have the motor respond normally but when the top button is pressed the motor should go to full speed in whatever direction the joystick is in or foward if the joystick is centered

I think I have figured out how to do this but I wont get to find out untill tomarrow.

also what is the function and what does each part of the serout command mean??


Justin Stiltner
Team 388


__________________
This message was archived from an earlier forum system. Some information may have been left out. Start new discussion in the current forums, and refer back to these threads when necessary.
  #2   Spotlight this post!  
Unread 23-06-2002, 22:55
archiver archiver is offline
Forum Archival System
#0047 (ChiefDelphi)
 
Join Date: May 2001
Location: Pontiac, MI
Posts: 21,214
archiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond repute
This is not too hard to do

Posted by Joe Johnson.   [PICTURE: SAME | NEW | HELP]


Engineer on team #47, Chief Delphi, from Pontiac Central High School and Delphi Automotive Systems.

Posted on 1/31/2000 5:31 AM MST


In Reply to: Programming posted by Justin Stiltner on 1/30/2000 10:53 PM MST:



Justin,

I think that this is not all that difficult.

Basically, you need a few IF statements.

Something like:
.
.
.
IF (THUMB1.eq.1) then MaxSpeed
Goto NoThumb
MaxSpeed:
if (Y1.gt.127) then FullAhead
FullRev:
Y1=00
Goto NoThumb
FullAhead:
Y1=254
NoThumb:
.
.
.

.gt. = greater than
.eq. = equal

(html sometimes gets confused if we use the real symbols)

Hope this helps.

Joe J.


__________________
This message was archived from an earlier forum system. Some information may have been left out. Start new discussion in the current forums, and refer back to these threads when necessary.
  #3   Spotlight this post!  
Unread 23-06-2002, 22:55
archiver archiver is offline
Forum Archival System
#0047 (ChiefDelphi)
 
Join Date: May 2001
Location: Pontiac, MI
Posts: 21,214
archiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond repute
Re: This is not too hard to do

Posted by Russell Pauley.

Coach on team #344 from Phoebus High School.

Posted on 1/31/2000 6:36 AM MST


In Reply to: This is not too hard to do posted by Joe Johnson on 1/31/2000 5:31 AM MST:



Innovation First has a paper on there web site that gives you the code to run a PWM with a button.

Russell


: Justin,

: I think that this is not all that difficult.

: Basically, you need a few IF statements.

: Something like:
: .
: .
: .
: IF (THUMB1.eq.1) then MaxSpeed
: Goto NoThumb
: MaxSpeed:
: if (Y1.gt.127) then FullAhead
: FullRev:
: Y1=00
: Goto NoThumb
: FullAhead:
: Y1=254
: NoThumb:
: .
: .
: .

: .gt. = greater than
: .eq. = equal

: (html sometimes gets confused if we use the real symbols)

: Hope this helps.

: Joe J.


__________________
This message was archived from an earlier forum system. Some information may have been left out. Start new discussion in the current forums, and refer back to these threads when necessary.
  #4   Spotlight this post!  
Unread 23-06-2002, 22:55
archiver archiver is offline
Forum Archival System
#0047 (ChiefDelphi)
 
Join Date: May 2001
Location: Pontiac, MI
Posts: 21,214
archiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond repute
Re: This is not too hard to do

Posted by Justin Stiltner.

Student on team #388, Epsilon, from Grundy High School and NASA, American Electric Power, Town of Grundy.

Posted on 1/31/2000 11:59 AM MST


In Reply to: Re: This is not too hard to do posted by Russell Pauley on 1/31/2000 6:36 AM MST:



I have theyr paper but cannot determin where to put the code at in the paper it says somthing about declaring pwm12 and then adding it to the serout command

I was thnking that by doing this Iwould not be able to control the pwm with the stick also

Justin Stiltner
Team 388



__________________
This message was archived from an earlier forum system. Some information may have been left out. Start new discussion in the current forums, and refer back to these threads when necessary.
  #5   Spotlight this post!  
Unread 23-06-2002, 22:55
archiver archiver is offline
Forum Archival System
#0047 (ChiefDelphi)
 
Join Date: May 2001
Location: Pontiac, MI
Posts: 21,214
archiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond repute
Re: This is not too hard to do

Posted by Justin Stiltner.

Student on team #388, Epsilon, from Grundy High School and NASA, American Electric Power, Town of Grundy.

Posted on 1/31/2000 8:31 PM MST


In Reply to: Re: This is not too hard to do posted by Justin Stiltner on 1/31/2000 11:59 AM MST:



Thanks to everybody that has helped me I have it working now
Keep up the good work

Justin Stiltner
Team 388


__________________
This message was archived from an earlier forum system. Some information may have been left out. Start new discussion in the current forums, and refer back to these threads when necessary.
  #6   Spotlight this post!  
Unread 23-06-2002, 22:55
archiver archiver is offline
Forum Archival System
#0047 (ChiefDelphi)
 
Join Date: May 2001
Location: Pontiac, MI
Posts: 21,214
archiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond repute
Re: Programming

Posted by Jerry Eckert.

Engineer from Looking for a team in Raleigh, NC sponsored by .

Posted on 1/31/2000 9:59 AM MST


In Reply to: Programming posted by Justin Stiltner on 1/30/2000 10:53 PM MST:



: I hope sombody knows how to accomplish this

: I need to be able to control a pwm with a button and a joystick, specifically I need to be able to move the joystick and have the motor respond normally but when the top button is pressed the motor should go to full speed in whatever direction the joystick is in or foward if the joystick is centered

: I think I have figured out how to do this but I wont get to find out untill tomarrow.

: also what is the function and what does each part of the serout command mean??

Try this:


IF (p1_sw_top = 0) then skip_full_drive
LOOKDOWN drive,
__________________
This message was archived from an earlier forum system. Some information may have been left out. Start new discussion in the current forums, and refer back to these threads when necessary.
  #7   Spotlight this post!  
Unread 23-06-2002, 22:55
archiver archiver is offline
Forum Archival System
#0047 (ChiefDelphi)
 
Join Date: May 2001
Location: Pontiac, MI
Posts: 21,214
archiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond repute
Re: Programming

Posted by Jerry Eckert.

Engineer from Looking for a team in Raleigh, NC sponsored by .

Posted on 1/31/2000 3:18 PM MST


In Reply to: Re: Programming posted by Jerry Eckert on 1/31/2000 9:59 AM MST:



: IF (p1_sw_top = 0) then skip_full_drive
: LOOKDOWN drive,
__________________
This message was archived from an earlier forum system. Some information may have been left out. Start new discussion in the current forums, and refer back to these threads when necessary.
 


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 Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Programming Compatition Angela06 Programming 30 08-04-2005 23:12
multi-bank programming problem GregC Programming 3 14-02-2003 16:13
Pneumatics electrical wiring and programming archiver 2001 1 23-06-2002 23:10
Error found in programming for the pump and pressure switch sjharobotics Programming 4 06-02-2002 17:46
pbasic programming punarhero Programming 4 21-01-2002 23:32


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

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