mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-06 03:31:43 +00:00
Reverted accidental commits
Change-Id: Ieee3600da11df698f1025c85972acd979e486aa0
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Copyright (c) FIRST 2014. 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 $(WIND_BASE)/WPILib. */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
#include "WPILib.h"
|
||||
#include "gtest/gtest.h"
|
||||
#include "TestBench.h"
|
||||
|
||||
TEST(CANTalonTest, QuickTest) {
|
||||
CANTalon talon(0);
|
||||
talon.SetControlMode(CANTalon::kPercentVbus);
|
||||
talon.EnableControl();
|
||||
talon.Set(1.0);
|
||||
Wait(0.25);
|
||||
EXPECT_GT(talon.GetOutputCurrent(), 4.0);
|
||||
|
||||
talon.Set(0.0);
|
||||
talon.Disable();
|
||||
}
|
||||
Reference in New Issue
Block a user