View Single Post
  #2   Spotlight this post!  
Unread 08-03-2009, 12:39
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: help with c++ code

if(!limitswitch1->Get())
{
jaguar1->Set(0.0);
Wait(0.05);
jaguar1->Set(0.5);
Wait(0.5);
jaguar1->Set(0.0);
}
else if (!limitswitch2->Get())
{
jaguar1->Set(0.0);
Wait(0.05);
jaguar1->Set(-0.5);
Wait(0.5);
jaguar1->Set(0.0);
}
else if (!limitswitch3 & leftStick->GetRawButton(10))
{
jaguar1->Set(0.0);
}
else
{
jaguar1->Set(leftStick->GetZ() );
}
yes, as long as you have {}
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote