Fix tests

This commit is contained in:
Pascal Serrarens 2024-05-14 11:58:51 +02:00
parent b81b236ef4
commit 863fae2f19
2 changed files with 4 additions and 1 deletions

View File

@ -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(

View File

@ -30,7 +30,7 @@ target_link_libraries(
RoboidControlTest
gtest_main
RoboidControl
VectorAlgebra
LinearAlgebra
)
include(GoogleTest)