Preseason Test Project Robot.cpp: Difference between revisions

From 1511Wookiee
Jump to navigationJump to search
No edit summary
(Replaced content with " ")
 
Line 1: Line 1:
<code
&nbsp;
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2017-2018 FIRST. All Rights Reserved.                        */
/* Open Source Software - may be modified and shared by FRC teams. The code  */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project.                                                              */
/*----------------------------------------------------------------------------*/
 
 
#include "../include/Robot.h"
#include <iostream>
#include <frc/Timer.h>
#include <frc/smartdashboard/SmartDashboard.h>
 
Robot::Robot() {
}
 
void Robot::RobotInit() {
}
 
void Robot::Disabled() {
}
 
void Robot::Autonomous() {
}
 
void Robot::OperatorControl() {
  while (IsOperatorControl() && IsEnabled()) {
    frc::Wait(0.005);
  }
}
 
void Robot::Test() {
}
 
#ifndef RUNNING_FRC_TESTS
int main() { return frc::StartRobot<Robot>(); }
#endif
</code>

Latest revision as of 13:14, 9 December 2019