Professional Documents
Culture Documents
Using C++
Philipp Schrader & Tom Brown
October 27, 2012
Programming in FRC
Introduction
Programming in FRC The robot has mechanical systems and
C++ Overview
Why C++ in FRC? electrical hardware, but needs a program to tell
First Steps
What is programming?
it what to do
Source Control
Windriver
WPILib
The program collects inputs from the drivers
Examples
Simple Robot
Drive with Joystick
and sensors, and uses them to decide what
Sensors
Simple Feedback motor output should be
Pneumatics
Autonomous
First Steps
What is programming?
Built as an extension on top of C
Source Control
Windriver
WPILib
Object-oriented programming language
Examples
Simple Robot
Drive with Joystick
Sensors
Simple Feedback
Pneumatics
Autonomous
Contact Information
Contact Information
First Steps
What is programming?
Acts as a backup storage, history browser, and
Source Control
Windriver versioning for the code.
WPILib
Examples
Simple Robot
Drive with Joystick
Easily shows differences between two versions
Sensors
Simple Feedback of the code. This includes the "current working
Pneumatics
Autonomous version" with any modifications.
Contact Information
Contact Information
Contact Information
START_ROBOT_CLASS(RobotDemo);
Contact Information
Wait(0.005);
}
}
Examples:
Encoder, Gyro, UltraSonic
Contact Information
Contact Information