WPILibC++  2020.3.2-60-g3011ebe
IterativeRobot.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) 2008-2020 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 <atomic>
11 
12 #include "frc/IterativeRobotBase.h"
13 
14 namespace frc {
15 
29  public:
30  WPI_DEPRECATED(
31  "Use TimedRobot instead. It's a drop-in replacement that provides more "
32  "regular execution periods.")
34  virtual ~IterativeRobot() = default;
35 
42  void StartCompetition() override;
43 
47  void EndCompetition() override;
48 
49  private:
50  std::atomic<bool> m_exit{false};
51 };
52 
53 } // namespace frc
frc::IterativeRobotBase
IterativeRobotBase implements a specific type of robot program framework, extending the RobotBase cla...
Definition: IterativeRobotBase.h:48
frc::IterativeRobot
IterativeRobot implements the IterativeRobotBase robot program framework.
Definition: IterativeRobot.h:28
frc
A class that enforces constraints on the differential drive kinematics.
Definition: PDPSim.h:16
frc::IterativeRobot::EndCompetition
void EndCompetition() override
Ends the main loop in StartCompetition().
frc::IterativeRobot::StartCompetition
void StartCompetition() override
Provide an alternate "main loop" via StartCompetition().