Go to Post The thrills of a heroic repair, a well deserved award, a compliment on our efforts, the growth of our team members, making new friends.... These can make a memorable and exciting FIRST regional as much as a close match. - Mark Pierce [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 26-01-2003, 03:59
PBoss PBoss is offline
Registered User
#1212
 
Join Date: Jan 2003
Location: Nowhere
Posts: 9
PBoss is an unknown quantity at this point
switches in order

Here is a piece of code in PBasic 2.5
IF p1_sw_top=1 AND p2_sw_top=1 then
p1_y=200

This means that at any given time, if p1 switch and p2 switch are pressed together p1_y=200, but here is my question:

Is there a way that you can program so that the switches will have to be pressed in order- first p1 switch and then p2 switch or vice versa- then only p1_y=200???
 


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
Limit switches Team168 Programming 8 10-02-2003 16:22
Custom Pneumatics order form Andrew Schuetze Kit & Additional Hardware 1 10-01-2003 20:34
Team selector switches on ISAAC Lloyd Burns Robotics Education and Curriculum 0 17-12-2002 08:32
More than 2 aux switches in 1 port f22flyboy Programming 2 01-11-2002 14:44
Need help with custom switches archiver 2001 3 24-06-2002 00:35


All times are GMT -5. The time now is 10:49.

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