2018-05-11 12:38:23 -07:00
|
|
|
/*----------------------------------------------------------------------------*/
|
2020-06-20 23:47:55 -07:00
|
|
|
/* Copyright (c) 2018-2020 FIRST. All Rights Reserved. */
|
2018-05-11 12:38:23 -07:00
|
|
|
/* 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. */
|
|
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2020-07-15 23:48:09 -07:00
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
|
|
#include <hal/HALBase.h>
|
2020-07-16 22:15:59 -07:00
|
|
|
#include <units/time.h>
|
2018-05-11 12:38:23 -07:00
|
|
|
|
|
|
|
|
namespace frc {
|
|
|
|
|
namespace sim {
|
2018-08-16 01:17:59 -04:00
|
|
|
|
2020-07-15 23:48:09 -07:00
|
|
|
void SetRuntimeType(HAL_RuntimeType type);
|
2020-06-26 20:46:13 -07:00
|
|
|
|
2020-07-15 23:48:09 -07:00
|
|
|
void WaitForProgramStart();
|
2018-08-16 01:17:59 -04:00
|
|
|
|
2020-07-15 23:48:09 -07:00
|
|
|
void SetProgramStarted();
|
2018-08-16 01:17:59 -04:00
|
|
|
|
2020-07-15 23:48:09 -07:00
|
|
|
bool GetProgramStarted();
|
2018-08-16 01:17:59 -04:00
|
|
|
|
2020-07-15 23:48:09 -07:00
|
|
|
void RestartTiming();
|
2018-08-16 01:17:59 -04:00
|
|
|
|
2020-07-15 23:48:09 -07:00
|
|
|
void PauseTiming();
|
2020-06-20 23:47:55 -07:00
|
|
|
|
2020-07-15 23:48:09 -07:00
|
|
|
void ResumeTiming();
|
2020-06-20 23:47:55 -07:00
|
|
|
|
2020-07-15 23:48:09 -07:00
|
|
|
bool IsTimingPaused();
|
2020-06-20 23:47:55 -07:00
|
|
|
|
2020-07-16 22:15:59 -07:00
|
|
|
void StepTiming(units::second_t delta);
|
2020-06-20 23:47:55 -07:00
|
|
|
|
2018-05-11 12:38:23 -07:00
|
|
|
} // namespace sim
|
|
|
|
|
} // namespace frc
|