Remove old files, add some to .gitignore, move Makefile
This commit is contained in:
parent
0ed78e6902
commit
1ade41bf50
2
.gitignore
vendored
2
.gitignore
vendored
@ -5,3 +5,5 @@ DriveBase/sysProps.xml
|
|||||||
.settings/*
|
.settings/*
|
||||||
Robot2016/.settings
|
Robot2016/.settings
|
||||||
Robot2016/sysProps.xml
|
Robot2016/sysProps.xml
|
||||||
|
FRCUserProgram
|
||||||
|
/RemoteSystemsTempFiles/
|
||||||
|
BIN
FRCUserProgram
BIN
FRCUserProgram
Binary file not shown.
@ -1,12 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<projectDescription>
|
|
||||||
<name>RemoteSystemsTempFiles</name>
|
|
||||||
<comment></comment>
|
|
||||||
<projects>
|
|
||||||
</projects>
|
|
||||||
<buildSpec>
|
|
||||||
</buildSpec>
|
|
||||||
<natures>
|
|
||||||
<nature>org.eclipse.rse.ui.remoteSystemsTempNature</nature>
|
|
||||||
</natures>
|
|
||||||
</projectDescription>
|
|
41
robot.cpp
41
robot.cpp
@ -1,41 +0,0 @@
|
|||||||
#include "WPILib.h"
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This is a demo program showing the use of the RobotDrive class.
|
|
||||||
* The SampleRobot class is the base of a robot application that will automatically call your
|
|
||||||
* Autonomous and OperatorControl methods at the right time as controlled by the switches on
|
|
||||||
* the driver station or the field controls.
|
|
||||||
*
|
|
||||||
* WARNING: While it may look like a good choice to use for your code if you're inexperienced,
|
|
||||||
* don't. Unless you know what you are doing, complex code will be much more difficult under
|
|
||||||
* this system. Use IterativeRobot or Command-Based instead if you're new.
|
|
||||||
*/
|
|
||||||
class Robot: public SampleRobot
|
|
||||||
{
|
|
||||||
RobotDrive myRobot; // robot drive system
|
|
||||||
Joystick stick; // only joystick
|
|
||||||
|
|
||||||
public:
|
|
||||||
Robot() :
|
|
||||||
myRobot(0, 1), // initialize the RobotDrive to use motor controllers on ports 0 and 1
|
|
||||||
stick(0)
|
|
||||||
{
|
|
||||||
myRobot.SetExpiration(0.1);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Runs the motors with arcade steering.
|
|
||||||
*/
|
|
||||||
void OperatorControl()
|
|
||||||
{
|
|
||||||
while (IsOperatorControl() && IsEnabled())
|
|
||||||
{
|
|
||||||
myRobot.ArcadeDrive(stick); // drive with arcade style (use right stick)
|
|
||||||
Wait(0.005); // wait for a motor update time
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
START_ROBOT_CLASS(Robot)
|
|
||||||
|
|
Reference in New Issue
Block a user