2020-12-26 14:12:05 -08:00
|
|
|
// Copyright (c) FIRST and other WPILib contributors.
|
|
|
|
|
// Open Source Software; you can modify and/or share it under the terms of
|
|
|
|
|
// the WPILib BSD license file in the root directory of this project.
|
2019-05-17 17:35:09 -07:00
|
|
|
|
|
|
|
|
#include "frc/shuffleboard/ShuffleboardWidget.h"
|
|
|
|
|
|
|
|
|
|
using namespace frc;
|
|
|
|
|
|
|
|
|
|
static constexpr const char* widgetStrings[] = {
|
|
|
|
|
"Text View",
|
|
|
|
|
"Number Slider",
|
|
|
|
|
"Number Bar",
|
|
|
|
|
"Simple Dial",
|
|
|
|
|
"Graph",
|
|
|
|
|
"Boolean Box",
|
|
|
|
|
"Toggle Button",
|
|
|
|
|
"Toggle Switch",
|
|
|
|
|
"Voltage View",
|
|
|
|
|
"PDP",
|
|
|
|
|
"ComboBox Chooser",
|
|
|
|
|
"Split Button Chooser",
|
|
|
|
|
"Encoder",
|
|
|
|
|
"Speed Controller",
|
|
|
|
|
"Command",
|
|
|
|
|
"PID Command",
|
|
|
|
|
"PID Controller",
|
|
|
|
|
"Accelerometer",
|
|
|
|
|
"3-Axis Accelerometer",
|
|
|
|
|
"Gyro",
|
|
|
|
|
"Relay",
|
|
|
|
|
"Differential Drivebase",
|
|
|
|
|
"Mecanum Drivebase",
|
|
|
|
|
"Camera Stream",
|
2022-01-24 20:33:11 -08:00
|
|
|
"Field",
|
2019-05-17 17:35:09 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const char* detail::GetStringForWidgetType(BuiltInWidgets type) {
|
|
|
|
|
return widgetStrings[static_cast<int>(type)];
|
|
|
|
|
}
|