Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "robot-config.h"
- using namespace vex;
- int main() {
- double armAngle = 0;
- bool armUp = 0;
- bool armDown = 0;
- const int MAX_ARM_ANGLE = 60;
- const int MIN_ARM_ANGLE = 0;
- while(true)
- {
- armUp = control1.ButtonR1.pressing();
- armDown = control1.ButtonR2.pressing();
- if(armUp)
- {
- }
- if(armDown)
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement