[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-685646-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-685646-en":130,"doc-similar-685646":149},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","programming-101-introduction-programming-basics-for-first-robotics-competition","Programming 101 - Introduction - Programming Basics for FIRST Robotics Competition","","Programming 101 provides a practical overview of programming basics for FIRST Robotics Competition teams. It introduces core language choices including Java, C++, LabVIEW, and Python, comparing performance, learning curve, typical team selection, and common development considerations such as unit tests and debugging. The guide then outlines how to start coding, choose starting code for each language, set up resources for development environments, and deploy working code onto the robot across languages, plus examples for controlling drivetrain and other mechanisms.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/programming-101-introduction-programming-basics-for-first-robotics-competition/685646/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/programming-101-introduction-programming-basics-for-first-robotics-competition/685646.png","ImageObject",300,407,{"name":42,"@type":43},"LangkahRina","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-26","2026-11-07",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",6,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"Which programming languages does Programming 101 cover for FIRST Robotics Competition?","Question",{"text":63,"@type":64},"It covers C++, Java/Kotlin, LabVIEW, and Python, focusing on how teams can choose and teach these languages for robot development.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"How does Java differ from C++ and LabVIEW in this guide?",{"text":68,"@type":64},"Java runs in the JVM, which can make it noticeably slower than compiled languages for computationally intensive tasks. C++ is fast and commonly chosen for speed and flexibility, while LabVIEW is a graphical dataflow language suited to parallel execution and provided engineering libraries.",{"name":70,"@type":61,"acceptedAnswer":71},"What is the recommended way to deploy code onto the robot for each language?",{"text":72,"@type":64},"C++ and Java code must be built and then deployed. LabVIEW should be run from source for development and then deployed as a built executable. Python is interpreted at runtime but still must be deployed to the robot.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},685646,1794016318,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,104,109,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":102,"slug":103},50,"technology",{"id":105,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},7,"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":97,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":55,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":55,"language":139,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":12,"update_tm":80,"read_time":143,"preview_page_count":22,"preview_urls":144},962090893776,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d","Programming 101  \nIntroduction  \nThis guide was initially created by The Compass Alliance and revised by FIRST® . The Compass Alliance was founded by 10 teams from around the world with the mission of helping FIRST® Robotics Competition teams sustain and grow.  \nThis resource will cover the basics of programming in FIRST Robotics Competition. It covers C++, Java/Kotlin, LabVIEW, and Python.  \nGetting Your Robot Running  \nPicking a Programming Language: Java, C++, or LabVIEW  \n• Java is a textual language that is commonly taught at high schools and used for the AP CS exams. It is a “safe” language in that runs in its own virtual environment. While it doesn’t generally affect FIRST Robotics Competition, this virtual environment, also known as the JVM, means that Java programs are noticeably slower than compiled languages when used for computationally intensive tasks. Java is often selected because of its ease of use, and crosscompatibility. Teams that use Java include 254, 125, 503, 4911, and 1241.  \n• C++ is a fast textual programming language. It is used in industry for real time systems because of its power and efficiency, but the learning curve is much steeper than Java. C++ evolved from the C programming language and the mixture of historical and modern features sometimes lead to confusing syntax and/or unexpected behaviors. FIRST Robotics Competition teams primarily use it due to its speed, flexibility, and its extensive mathematical libraries. Teams that use C++ include 1756 and 6800.  \n• LabVIEW is a graphical dataflow programming language developed by National Instruments (NI) for use by engineers and technicians. In a LabVIEW diagram, it is very easy to take advantage of advanced computing features, such as running pieces of code in parallel. While powerful, such features often introduce new issues to deal with. NI provides extensive debugging tools, however. The LabVIEW environment and language come with its own learning curve and unique challenges. FIRST Robotics Competition teams primarily use it due to its simplified graphical syntax and extensive engineering libraries. Teams that use LabVIEW include 2468 and 4150.  \n• Python is a high-level, general-purpose programming language that emphasizes code readability. Python is heavily featured in many online programming courses and is used frequently in academia. Unlike the other languages, Python is not compiled, making it far more likely for things like typos to lead to code crashes, so teams should make sure to use unit tests, simulation, and other recommend techniques to combat this. FIRST Robotics Competition teams primarily use it due to its ease of use and student and/or mentor familiarity. Teams that use Python include: 1736, 2881, and 4774  \nChoosing what language always depends on what is easiest for your team. For example, it can often make sense to choose a language because a programming mentor is an expert in that language. On the other hand, it might make sense to choose based on the ease of learning a given language. No matter what your decision, remember that the choice of programming language is specific to the  \nworking environment and people of your team. All of the languages are capable, well supported, and sufficiently powerful for FIRST Robotics Competition use. If your team has no students or mentors with experience in any language and no direct mentoring from another team with a preferred language, we currently recommend selecting Java. This language is used by the vast majority of teams, meaning code examples are more readily available.  \nTeaching the Programming Language  \nWhen teaching programming for FIRST Robotics Competition, there are two distinct subjects that need to be taught. The first is the semantics and syntax of the programming language itself, and the second is interfacing with FIRST Robotics Competition components. A guide to learning each language can be found below:  \n• C++ – Learn CPP  \n• Java – Codecademy  \n• LabVIEW – LabVIE","cbCaieY99uteNOs8","https://ap.wps.com/l/cbCaieY99uteNOs8","pdf",604850,"English","# Introduction\n# Getting Your Robot Running\n## Picking a Programming Language\n## Teaching the Programming Language\n# Picking your starting code\n# Getting code onto your robot!\n# Code for mechanisms","[{\"question\":\"Which programming languages does Programming 101 cover for FIRST Robotics Competition?\",\"answer\":\"It covers C++, Java/Kotlin, LabVIEW, and Python, focusing on how teams can choose and teach these languages for robot development.\"},{\"question\":\"How does Java differ from C++ and LabVIEW in this guide?\",\"answer\":\"Java runs in the JVM, which can make it noticeably slower than compiled languages for computationally intensive tasks. C++ is fast and commonly chosen for speed and flexibility, while LabVIEW is a graphical dataflow language suited to parallel execution and provided engineering libraries.\"},{\"question\":\"What is the recommended way to deploy code onto the robot for each language?\",\"answer\":\"C++ and Java code must be built and then deployed. LabVIEW should be run from source for development and then deployed as a built executable. Python is interpreted at runtime but still must be deployed to the robot.\"}]","Programming 101 - Introduction - Programming Basics for FIRST Robotics Competition | PDF",15,[145],{"page_no":22,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/11e6c83094ef0dbc2911b992826388bd.webp",983,1272,{"list":150,"token":11},[151,158,164,170,176,182,189,196,202,208],{"doc_id":152,"doc_title":153,"file_type":137,"home_preview_img_url":154,"slug":155,"view_count":156,"category_name":29,"create_tm":157},347827,"Learning Computer Programming Using JAVA with 101 Examples - Preface and Table of Contents","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229911558400/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=7UEg052nbdpfq3paLBsFr1sR1AM%3D","learning-computer-programming-using-java-with-101-examples-preface-and-table-of-contents",18,1790069263,{"doc_id":159,"doc_title":160,"file_type":137,"home_preview_img_url":161,"slug":162,"view_count":115,"category_name":29,"create_tm":163},721667,"HDevelop User’s Guide - HALCON 26.11 Progress-Steady - Version 26.11.1.0 - Welcome","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230025183018/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=u%2BBOUFoM1pj3AzxcZ6TVBsLax%2Fk%3D","hdevelop-users-guide-halcon-2611-progress-steady-version-261110-welcome",1795067407,{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":117,"category_name":29,"create_tm":169},347822,"Introduction to Programming Using Java - Version 9 - Swing Edition","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229911558026/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=dFs%2B2XbIglyN9F70Xn%2FBOpoFYuM%3D","introduction-to-programming-using-java-version-9-swing-edition",1790069250,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":30,"category_name":29,"create_tm":175},700670,"Learn Robotics Programming - Second Edition - build and control AI-enabled autonomous robots with the Raspberry Pi and Python","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012032311/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=8qPKGuKPM8T3yLSSsrtWUPJA7aI%3D","learn-robotics-programming-second-edition-build-and-control-ai-enabled-autonomous-robots-with-the-raspberry-pi-and-python",1794519896,{"doc_id":177,"doc_title":178,"file_type":137,"home_preview_img_url":179,"slug":180,"view_count":115,"category_name":29,"create_tm":181},424705,"Achieving Standardization in Robot Programming - Introduction - Ease of integration","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229922358000/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=4AXacPViByEHUeGBlLx0d30xOpA%3D","achieving-standardization-in-robot-programming-introduction-ease-of-integration",1790635119,{"doc_id":183,"doc_title":184,"file_type":137,"home_preview_img_url":185,"slug":186,"view_count":187,"category_name":29,"create_tm":188},150822,"TechnoTurtle Python - Teacher Guide - Lessons for Elementary School Students","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229869770512/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=6vHkzhfX0zaBxYPkfRUgetGYBTE%3D","technoturtle-python-teacher-guide-lessons-for-elementary-school-students",26,1787827634,{"doc_id":190,"doc_title":191,"file_type":137,"home_preview_img_url":192,"slug":193,"view_count":194,"category_name":29,"create_tm":195},671801,"Programming with Python","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229988773037/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=0RMPTgLYIwnMktgeK8fnnIB8JIc%3D","programming-with-python",12,1793580665,{"doc_id":197,"doc_title":198,"file_type":137,"home_preview_img_url":199,"slug":200,"view_count":105,"category_name":29,"create_tm":201},671800,"Python Programming - Practical Programming Learning","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229988772994/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=Pxi2mt53nv3pslD5AZ4qdYO6xDE%3D","python-programming-practical-programming-learning",1793580659,{"doc_id":203,"doc_title":204,"file_type":137,"home_preview_img_url":205,"slug":206,"view_count":33,"category_name":29,"create_tm":207},682222,"GUIDELINES FOR PYTHON DEVELOPMENT - Issue 2 - Draft","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229998448683/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=X73snz404vi6ZMd6utjd5ogjx2U%3D","guidelines-for-python-development-issue-2-draft",1793963020,{"doc_id":209,"doc_title":210,"file_type":137,"home_preview_img_url":211,"slug":212,"view_count":26,"category_name":29,"create_tm":213},711080,"Think Python - A guide to thinking like a computer scientist","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230017029910/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=bWhSC24xiyydHtKBovPg1sPBkqc%3D","think-python-a-guide-to-thinking-like-a-computer-scientist",1794782802]