[hal, wpilib] Remove built in accelerometer (#7702)

This commit is contained in:
Thad House
2025-01-17 14:06:09 -08:00
committed by GitHub
parent 1600e773f4
commit 5a6c895b87
48 changed files with 0 additions and 2304 deletions

View File

@@ -4,7 +4,6 @@
#pragma once
#include <frc/BuiltInAccelerometer.h>
#include <frc/Encoder.h>
#include <frc/drive/DifferentialDrive.h>
#include <frc/xrp/XRPGyro.h>
@@ -78,27 +77,6 @@ class Drivetrain : public frc2::SubsystemBase {
*/
units::meter_t GetAverageDistance();
/**
* The acceleration in the X-axis.
*
* @return The acceleration of the XRP along the X-axis.
*/
units::meters_per_second_squared_t GetAccelX();
/**
* The acceleration in the Y-axis.
*
* @return The acceleration of the XRP along the Y-axis.
*/
units::meters_per_second_squared_t GetAccelY();
/**
* The acceleration in the Z-axis.
*
* @return The acceleration of the XRP along the Z-axis.
*/
units::meters_per_second_squared_t GetAccelZ();
/**
* Current angle of the XRP around the X-axis.
*
@@ -137,5 +115,4 @@ class Drivetrain : public frc2::SubsystemBase {
[&](double output) { m_rightMotor.Set(output); }};
frc::XRPGyro m_gyro;
frc::BuiltInAccelerometer m_accelerometer;
};