Fix tests
This commit is contained in:
parent
b81b236ef4
commit
863fae2f19
@ -128,6 +128,7 @@ TEST(BB2B, ObstacleLeft) {
|
||||
Sensor *sensors[] = {sensorLeft, sensorRight};
|
||||
|
||||
Perception *perception = new Perception(sensors, 2);
|
||||
perception->nearbyDistance = 0.2f;
|
||||
|
||||
DifferentialDrive *propulsion = new DifferentialDrive(motorLeft, motorRight);
|
||||
propulsion->SetDimensions(
|
||||
@ -229,6 +230,7 @@ TEST(BB2B, ObstacleRight) {
|
||||
Sensor *sensors[] = {sensorLeft, sensorRight};
|
||||
|
||||
Perception *perception = new Perception(sensors, 2);
|
||||
perception->nearbyDistance = 0.2f;
|
||||
|
||||
DifferentialDrive *propulsion = new DifferentialDrive(motorLeft, motorRight);
|
||||
propulsion->SetDimensions(
|
||||
@ -328,6 +330,7 @@ TEST(BB2B, ObstacleBoth) {
|
||||
Sensor *sensors[] = {sensorLeft, sensorRight};
|
||||
|
||||
Perception *perception = new Perception(sensors, 2);
|
||||
perception->nearbyDistance = 0.2f;
|
||||
|
||||
DifferentialDrive *propulsion = new DifferentialDrive(motorLeft, motorRight);
|
||||
propulsion->SetDimensions(
|
||||
|
@ -30,7 +30,7 @@ target_link_libraries(
|
||||
RoboidControlTest
|
||||
gtest_main
|
||||
RoboidControl
|
||||
VectorAlgebra
|
||||
LinearAlgebra
|
||||
)
|
||||
|
||||
include(GoogleTest)
|
||||
|
Loading…
x
Reference in New Issue
Block a user