90 likes | 244 Views
Robotics Summer Training Programming #4: Autonomous Scoring. Objectives:. Complete your library of functions Create an autonomous program for your robot to score a goal. Autonomous Project. Score a sack into a trough autonomously. Stage 1: Planning (Algorithm, Flowchart, Pseudocode).
E N D
Objectives: Complete your library of functions Create an autonomous program for your robot to score a goal.
Autonomous Project Score a sack into a trough autonomously
Stage 1: Planning (Algorithm, Flowchart, Pseudocode) Stage 2: Coding (Variables, Functions, if statements, Loops) Stage 3: Error Analysis (Syntax Errors, Logic Errors, Readdress Plan)
Autonomous: Starting Position GOOD BAD Make sure your robot starts in a legal position
Autonomous Scoring: Raise Claw Up. Drive forward ~5 ft. Open Claw.
Which set of function calls would correctly accomplish our goal? Click the number corresponding to the correct answer on your clicker. A. B. C. D. ArmLift() ArmLift() ArmLift() DriveStraight() DriveStraight() DriveStraight() DriveStraight() ArmLift() Stop() Wait() Wait() OpenClaw() OpenClaw() Stop() OpenClaw() CloseClaw() OpenClaw()
Stage 1: Planning (Algorithm, Flowchart, Pseudocode) Stage 2: Coding (Variables, Functions, if statements, Loops) Stage 3: Error Analysis (Syntax Errors, Logic Errors, Readdress Plan)
Other EasyC Programming Resources • EasyC Help Menu great tutorials, and examples • www.vexforums.com everyone sign in and get an account • Baltimore City’s Robotics Peer Learning Community • http://www.gabrielse.net/robotics/summer/powerpoints/vex_powerpoints.php • There is step by step instructions (with screenshots) on how to program a protobot