WPILibC++  2019.1.1-beta-2-16-ga60f312
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
IterativeRobot.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) 2008-2018 FIRST. All Rights Reserved. */
3 /* Open Source Software - may be modified and shared by FRC teams. The code */
4 /* must be accompanied by the FIRST BSD license file in the root directory of */
5 /* the project. */
6 /*----------------------------------------------------------------------------*/
7 
8 #pragma once
9 
10 #include "frc/IterativeRobotBase.h"
11 
12 namespace frc {
13 
24  public:
25  WPI_DEPRECATED(
26  "Use TimedRobot instead. It's a drop-in replacement that provides more "
27  "regular execution periods.")
29  virtual ~IterativeRobot() = default;
30 
31  IterativeRobot(IterativeRobot&&) = default;
32  IterativeRobot& operator=(IterativeRobot&&) = default;
33 
40  void StartCompetition() override;
41 };
42 
43 } // namespace frc
WPILib FRC namespace.
Definition: SPIAccelerometerSim.h:18
void StartCompetition() override
Provide an alternate "main loop" via StartCompetition().
IterativeRobot implements the IterativeRobotBase robot program framework.
Definition: IterativeRobot.h:23
IterativeRobotBase implements a specific type of robot program framework, extending the RobotBase cla...
Definition: IterativeRobotBase.h:44