Preseason Test Project Robot.cpp

From 1511Wookiee
Revision as of 13:11, 9 December 2019 by Programming (talk | contribs)
Jump to navigationJump to search

<code /*----------------------------------------------------------------------------*/ /* 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. */ /*----------------------------------------------------------------------------*/


  1. include "../include/Robot.h"
  2. include <iostream>
  3. include <frc/Timer.h>
  4. 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() { }

  1. ifndef RUNNING_FRC_TESTS

int main() { return frc::StartRobot<Robot>(); }

  1. endif