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