Skip to content

Instantly share code, notes, and snippets.

@basicxman
Created December 1, 2011 04:56
Show Gist options
  • Select an option

  • Save basicxman/1413779 to your computer and use it in GitHub Desktop.

Select an option

Save basicxman/1413779 to your computer and use it in GitHub Desktop.
Boolean Logic Conditionals [MMRambotics Training Material]
IsArmInButtonPressed()
previousArmInButton && !currentValue
clawState == OUT
distance > 0
degreesToTurn < 0
tempAngle >= degreesToTurn
height > armInitial
drive->GetRightDistance() - drive->GetLeftDistance() > 0.05
value > -1 && value < 1
report.boundingRect.width > IMAGE_DEPLOYMENT_LINE_MAX_WIDTH
joystick.GetButton(F310::kRightBumper)
(inputA > minB && inputA < maxB) || (inputB > minA && inputB < maxA)
turnComplete
driveComplete && armComplete
arm->GetPosition() > 30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment