mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-05 03:21:42 +00:00
[hal,wpilib] Rename RuntimeType constants to all caps
This commit is contained in:
@@ -29,14 +29,14 @@
|
||||
#include "wpi/util/print.hpp"
|
||||
#include "wpi/util/timestamp.hpp"
|
||||
|
||||
static_assert(wpi::RuntimeType::kRoboRIO ==
|
||||
static_cast<wpi::RuntimeType>(HAL_Runtime_RoboRIO));
|
||||
static_assert(wpi::RuntimeType::kRoboRIO2 ==
|
||||
static_cast<wpi::RuntimeType>(HAL_Runtime_RoboRIO2));
|
||||
static_assert(wpi::RuntimeType::kSimulation ==
|
||||
static_cast<wpi::RuntimeType>(HAL_Runtime_Simulation));
|
||||
static_assert(wpi::RuntimeType::kSystemcore ==
|
||||
static_cast<wpi::RuntimeType>(HAL_Runtime_Systemcore));
|
||||
static_assert(wpi::RuntimeType::ROBORIO ==
|
||||
static_cast<wpi::RuntimeType>(HAL_RUNTIME_ROBORIO));
|
||||
static_assert(wpi::RuntimeType::ROBORIO_2 ==
|
||||
static_cast<wpi::RuntimeType>(HAL_RUNTIME_ROBORIO_2));
|
||||
static_assert(wpi::RuntimeType::SIMULATION ==
|
||||
static_cast<wpi::RuntimeType>(HAL_RUNTIME_SIMULATION));
|
||||
static_assert(wpi::RuntimeType::SYSTEMCORE ==
|
||||
static_cast<wpi::RuntimeType>(HAL_RUNTIME_SYSTEMCORE));
|
||||
|
||||
using SetCameraServerSharedFP = void (*)(wpi::CameraServerShared*);
|
||||
|
||||
|
||||
@@ -8,13 +8,13 @@ namespace wpi {
|
||||
/**
|
||||
* Runtime type.
|
||||
*/
|
||||
enum RuntimeType {
|
||||
enum class RuntimeType {
|
||||
/// roboRIO 1.0.
|
||||
kRoboRIO,
|
||||
ROBORIO,
|
||||
/// roboRIO 2.0.
|
||||
kRoboRIO2,
|
||||
ROBORIO_2,
|
||||
/// Simulation runtime.
|
||||
kSimulation,
|
||||
kSystemcore
|
||||
SIMULATION,
|
||||
SYSTEMCORE
|
||||
};
|
||||
} // namespace wpi
|
||||
|
||||
Reference in New Issue
Block a user