mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Updated PDP port of Talon and disabled PDP tests for Victor and Jaguar since the Victor and Jaguar don't draw enough current for the PDP to read above 0. PDP tests for both java and cpp only test the Talon now.
Change-Id: I84b2f168b27d07b444e223ae225013b6e97edde3
This commit is contained in:
@@ -56,40 +56,3 @@ TEST_F(PowerDistributionPanelTest, CheckCurrentTalon) {
|
||||
<< "The Talon current was not positive";
|
||||
}
|
||||
|
||||
/**
|
||||
* Test if the current changes when the motor is driven using a victor
|
||||
*/
|
||||
TEST_F(PowerDistributionPanelTest, CheckCurrentVictor) {
|
||||
Wait(kMotorTime);
|
||||
|
||||
/* The Current should be 0 */
|
||||
EXPECT_FLOAT_EQ(0, m_pdp->GetCurrent(TestBench::kVictorPDPChannel))
|
||||
<< "The Victor current was non-zero";
|
||||
|
||||
/* Set the motor to full forward */
|
||||
m_victor->Set(1.0);
|
||||
Wait(kMotorTime);
|
||||
|
||||
/* The current should now be positive */
|
||||
ASSERT_GT(m_pdp->GetCurrent(TestBench::kVictorPDPChannel), 0)
|
||||
<< "The Victor current was not positive";
|
||||
}
|
||||
|
||||
/**
|
||||
* Test if the current changes when the motor is driven using a jaguar
|
||||
*/
|
||||
TEST_F(PowerDistributionPanelTest, CheckCurrentJaguar) {
|
||||
Wait(kMotorTime);
|
||||
|
||||
/* The Current should be 0 */
|
||||
EXPECT_FLOAT_EQ(0, m_pdp->GetCurrent(TestBench::kJaguarPDPChannel))
|
||||
<< "The Jaguar current was non-zero";
|
||||
|
||||
/* Set the motor to full forward */
|
||||
m_jaguar->Set(1.0);
|
||||
Wait(kMotorTime);
|
||||
|
||||
/* The current should now be positive */
|
||||
ASSERT_GT(m_pdp->GetCurrent(TestBench::kJaguarPDPChannel), 0)
|
||||
<< "The Jaguar current was not positive";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user