Introduction to RobotC Kat Baker July 20-21, 2017 http://www.education.rec.ri.cmu.edu/products/teaching_robotc_cortex/setup/sample/download_sample.pdf?_ga=2.74954130.1076178490.1499877651-809733495.1495677984 Pages 1-6, 12-13 for handout http://www.education.rec.ri.cmu.edu/products/teaching_robotc_vex/ Curriculum
Outline Download Information Programming Sample Code Resources Curriculum (videos and handouts)
Download Info Full license through 12/31/2017 RobotC for VEX v. 4.x Robot Virtual Worlds Download link and password provided at Kickoff
Programming Programming languages range from graphical (Simulink) to text based (RobotC)
RobotC
RobotC
RobotC Sample Code
Numerical Values Joysticks Buttons -127 to 127 (left to right or down to up) Buttons 0 - not pressed 1 - pressed
Numerical Values Motors Servos Are on or off -127 to 127 (negative are backwards) Servos Go to a specific location -127 (furthest counterclockwise) 127 (furthest clockwise) Can’t rotate a full rotation
Tank vs. Arcade Drive Tank Drive Arcade Drive Each wheel controlled separately. Each joystick knob controls a different wheel Arcade Drive One joystick – forwards, back, left, right Wheel motors are programmed to do what you want them to. Need to use BEST_Function_Library.h
Resources
Resources FIRE Site
Resources CMU - Robotics Academy