mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Move them to the old commands vendordep so that PIDCommand and PIDSubsystem continue to work. This also removes Filter and LinearDigitalFilter.
17 lines
508 B
C++
17 lines
508 B
C++
// 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.
|
|
|
|
#include "frc/GyroBase.h"
|
|
|
|
#include "frc/WPIErrors.h"
|
|
#include "frc/smartdashboard/SendableBuilder.h"
|
|
|
|
using namespace frc;
|
|
|
|
void GyroBase::InitSendable(SendableBuilder& builder) {
|
|
builder.SetSmartDashboardType("Gyro");
|
|
builder.AddDoubleProperty(
|
|
"Value", [=]() { return GetAngle(); }, nullptr);
|
|
}
|