mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Upgraded clang-format to 5.0 (#431)
This commit is contained in:
committed by
Peter Johnson
parent
0001047b8b
commit
0c83cad70c
@@ -34,8 +34,8 @@ TEST(NotifierTest, DISABLED_TestTimerNotifications) {
|
||||
Wait(10.5);
|
||||
llvm::outs() << "...Wait\n";
|
||||
|
||||
EXPECT_EQ(10u, notifierCounter) << "Received " << notifierCounter
|
||||
<< " notifications in 10.5 seconds";
|
||||
EXPECT_EQ(10u, notifierCounter)
|
||||
<< "Received " << notifierCounter << " notifications in 10.5 seconds";
|
||||
llvm::outs() << "Received " << notifierCounter
|
||||
<< " notifications in 10.5 seconds";
|
||||
|
||||
|
||||
@@ -86,9 +86,9 @@ TEST_F(PIDToleranceTest, Percent) {
|
||||
<< "Error was in tolerance when it should not have been. Error was "
|
||||
<< pid->GetAvgError();
|
||||
|
||||
inp.val = setpoint +
|
||||
(tolerance) / 200 *
|
||||
range; // half of percent tolerance away from setpoint
|
||||
inp.val =
|
||||
setpoint + (tolerance) / 200 *
|
||||
range; // half of percent tolerance away from setpoint
|
||||
Wait(1.0);
|
||||
|
||||
EXPECT_TRUE(pid->OnTarget())
|
||||
|
||||
@@ -103,10 +103,10 @@ void TiltPanCameraTest::GyroAngle() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets calibrated parameters from previously calibrated gyro, allocates a new
|
||||
* gyro with the given parameters for center and offset, and re-runs tests on
|
||||
* the new gyro.
|
||||
*/
|
||||
* Gets calibrated parameters from previously calibrated gyro, allocates a new
|
||||
* gyro with the given parameters for center and offset, and re-runs tests on
|
||||
* the new gyro.
|
||||
*/
|
||||
void TiltPanCameraTest::GyroCalibratedParameters() {
|
||||
uint32_t cCenter = m_gyro->GetCenter();
|
||||
double cOffset = m_gyro->GetOffset();
|
||||
|
||||
Reference in New Issue
Block a user