Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   windriver help!! (http://www.chiefdelphi.com/forums/showthread.php?t=90082)

aya94 25-01-2011 15:42

windriver help!!
 
Hi:
I am part of team 1946 , and we are now writing our robot cod for season 2011 , our programming language is C++, and we kind of have a little problem ..
We finished the mecanum wheels programming and they worked perfectly, now we are about to program the pneumatic hand. Basically the hand is a gripper,that opens when pressing button (2) on the joystick and closes when pressing button (3) ,we wrote a cod for that but it keeps giving us errors.
It will be great if you helped us to figure out what is the problem exactly with our code …
here is our code (this is a part of the entire code ,we defind (solenoid gripper_o) and solenoid gripper_c)


bool gripper_cTrig = Leftstick.GetRawButton(3);
bool gripper_oTrig = Leftstick.GetRawButton(2);

if (gripper_oTrig)
{
gripper_o.Set(true);
gripper_c.Set(false);
}
else if(gripper_cTrig)
{

gripper_o.Set(false);
gripper_c.Set(true);
}
else
{
gripper_o.Set(false);
gripper_c.Set(false);
}

mikets 25-01-2011 16:14

Re: windriver help!!
 
Quote:

Originally Posted by aya94 (Post 1008160)
Hi:
We finished the mecanum wheels programming and they worked perfectly, now we are about to program the pneumatic hand. Basically the hand is a gripper,that opens when pressing button (2) on the joystick and closes when pressing button (3) ,we wrote a cod for that but it keeps giving us errors.

What errors? Is it compiler error, run-time error or just doesn't work as expected?


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

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi