[examples] Hatchbots: Add telemetry (#5011)

This commit is contained in:
Starlight220
2023-02-01 09:44:18 +02:00
committed by GitHub
parent 83ef8f9658
commit 2f96cae31a
32 changed files with 251 additions and 568 deletions

View File

@@ -43,20 +43,6 @@ class DriveSubsystem : public frc2::SubsystemBase {
*/
double GetAverageEncoderDistance();
/**
* Gets the left drive encoder.
*
* @return the left drive encoder
*/
frc::Encoder& GetLeftEncoder();
/**
* Gets the right drive encoder.
*
* @return the right drive encoder
*/
frc::Encoder& GetRightEncoder();
/**
* Sets the max output of the drive. Useful for scaling the drive to drive
* more slowly.
@@ -65,6 +51,8 @@ class DriveSubsystem : public frc2::SubsystemBase {
*/
void SetMaxOutput(double maxOutput);
void InitSendable(wpi::SendableBuilder& builder) override;
private:
// Components (e.g. motor controllers and sensors) should generally be
// declared private and exposed only through public methods.