180 likes | 374 Views
Introduction to Programming. Jessica Boucher intelitek, Inc. About intelitek, Inc. A global company in business for more than 25 years Worldwide sales $18 Million Extensive experience in developing curriculum and assessments aligned with industrial, state and national standards
E N D
Introduction to Programming Jessica Boucher intelitek, Inc.
About intelitek, Inc. • A global company in business for more than 25 years • Worldwide sales $18 Million • Extensive experience in developing curriculum and assessments aligned with industrial, state and national standards • intelitek programs include custom training solutions for corporate and educational customers
Dedicated to technology education • Skills USA: 280,000 Students • Sponsor of both the AMT and Robotics competitions for more than 14 years, with extensive support and investment at the state and national levels. • Youth Development Foundation (YDF) member for more than 8 years. • Project Lead The Way (PLTW): 1400 Schools • Intelitek primary technology supplier PLM-1000/eXpertMill and ER4u packages • FIRST Robotics Competition: 130,000 Students • Official Program Supplier: FRC • EasyC 2.0 and EasyC PRO provided to more than 32,000 students
Online Window • Real-time testing • Visually solidifies how things work
Robot Map 255 0 0 255
Writing your first program • Talk out your program • Write it down using robot map • Bring code into easyC
Programming with turns • Types of turns • Arc • One motor stopped • Spin • Two motors, same direction
RC Control • What is RC Control? • Types of RC Control • Tank vs. Arcade • 2 motor vs. 4 motor • Programming RC Control • WHILE loops vs. IF loops
Programming and Sensors • Why use sensors? • Sensors Programming • Test Sensor • Declare variable • Program sensor • Get value • Tell robot how to interpret value
Variables • Constants vs. Variables • Wait (5000) vs. Wait (pause) • Variable Rules • Begin with a letter • Not a reserved word (IF, WHILE, FOR) • Not Characters ( #, !, %) • Best Practices • Use_Underscores • Be descriptive, but short • C is Case Sensitive!
Programming and Sensors • Why use sensors? • Sensors Programming • Test Sensor • Declare variable • Program sensor • Get value • Tell robot how to interpret value
Competition Templates • For Consistent Match Play • Functions • Initialize (FRC Only) • Robot on -> autonomous • Initialize sensors • Autonomous • How the robot will act on its own • Operator Control • How the robot will act when driven
Suggested Vex Projects • Dry-erase Marker & Whiteboard • Draw shapes • Program your initials • Create a maze • Obstacle Course • Practice driving • Use sensors to detect • Vex Games – old or new
Support • 24/7 Support • easyC Help File • www.intelitekdownloads.com/easyCPRO • www.intelitekdownloads.com/easyCV2 • intelitek Supported Forums • www.chiefdelphi.com • www.vexforum.com • During business hours • support@intelitek.com • 800-221-2763