Fix GearsBot log methods not being called periodically (#2280)

Add logging for C++ Wrist and Claw
This commit is contained in:
sciencewhiz
2020-01-17 20:18:15 -08:00
committed by Peter Johnson
parent 2eb5c54476
commit ac8177e10d
14 changed files with 88 additions and 29 deletions

View File

@@ -1,5 +1,5 @@
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2017-2019 FIRST. All Rights Reserved. */
/* Copyright (c) 2017-2020 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
@@ -32,11 +32,16 @@ class Wrist : public frc2::PIDSubsystem {
/**
* Use the motor as the PID output. This method is automatically called
* by
* the subsystem.
* by the subsystem.
*/
void UseOutput(double output, double setpoint) override;
/**
* Log the data periodically. This method is automatically called
* by the subsystem.
*/
void Periodic() override;
private:
frc::PWMVictorSPX m_motor{6};
double m_setpoint = 0;