mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-02 02:51:42 +00:00
[examples] Fix comments in Gearsbot to match implementation (NFC) (#2957)
This commit is contained in:
@@ -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 */
|
/* 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 */
|
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
||||||
/* the project. */
|
/* the project. */
|
||||||
@@ -13,8 +13,7 @@
|
|||||||
#include "subsystems/Claw.h"
|
#include "subsystems/Claw.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Opens the claw for one second. Real robots should use sensors, stalling
|
* Closes the claw until the limit switch is tripped.
|
||||||
* motors is BAD!
|
|
||||||
*/
|
*/
|
||||||
class CloseClaw : public frc2::CommandHelper<frc2::CommandBase, CloseClaw> {
|
class CloseClaw : public frc2::CommandHelper<frc2::CommandBase, CloseClaw> {
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -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 */
|
/* 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 */
|
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
||||||
/* the project. */
|
/* the project. */
|
||||||
@@ -13,7 +13,7 @@ import edu.wpi.first.wpilibj.examples.gearsbot.Robot;
|
|||||||
import edu.wpi.first.wpilibj.examples.gearsbot.subsystems.Claw;
|
import edu.wpi.first.wpilibj.examples.gearsbot.subsystems.Claw;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Closes the claw for one second. Real robots should use sensors, stalling motors is BAD!
|
* Closes the claw until the limit switch is tripped.
|
||||||
*/
|
*/
|
||||||
public class CloseClaw extends CommandBase {
|
public class CloseClaw extends CommandBase {
|
||||||
private final Claw m_claw;
|
private final Claw m_claw;
|
||||||
|
|||||||
Reference in New Issue
Block a user