Go to Post Checklist: Robot on, thinkamajig set, autonomous set, safety bar pulled. - DonRotolo [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 29-03-2008, 07:27
beefy23 beefy23 is offline
Registered User
no team
 
Join Date: Mar 2008
Location: Israel
Posts: 9
beefy23 is an unknown quantity at this point
Question Problem in Pneumatics programming

I have a problem trying to cause the piston going forwards and backwards.

What I`ve tried to do is to move the piston backwards when the user clicks on the joystick`s trig and to move the piston forwards when the user get rid of the joystick`s trig.

I had a problem which seemed ambiguous for me and I couldn`t find the error, it compiled successfully.

I made sure the spike is plugged in the proper relay, and the joystick is plugged in the proper port.

Here is the code:

if(p1_sw_trig)
{
relay1_fwd = 0;
relay1_rev = 1;
}
else
{
relay1_fwd = 1;
relay1_rev = 0;
}

but it doesn`t do anything .
 


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
programming pneumatics problem program1 Programming 4 18-02-2008 17:35
Pneumatics Rookie Problem Squishylizard Pneumatics 4 06-02-2007 17:30
pneumatics coding problem (or technical) wildabyss Programming 2 22-02-2005 22:16
pneumatics coding problem (or technical) wildabyss Pneumatics 2 22-02-2005 22:16
Pneumatics Problem + possible fix Srkasner Pneumatics 4 24-02-2004 10:39


All times are GMT -5. The time now is 01: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