Skip to content

Commit f12f2f3

Browse files
committed
update asmc tests
1 parent b93ae76 commit f12f2f3

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

test/asmc_test.cpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,3 @@ TEST_F(ASMCTest, ReachesVelocityAndHeading){
2828
EXPECT_NEAR(modelState.u, setpoint.velocity_setpoint, 0.1);
2929
EXPECT_NEAR(modelState.pose_psi, setpoint.heading_setpoint, 0.5);
3030
}
31-
32-
TEST_F(ASMCTest, UpdateNReachesVelAndHeading){
33-
auto modelState = model.update(0, 0);
34-
ASMCOutput out{};
35-
ASMCSetpoint setpoint{};
36-
37-
//Janky code, this is actuall ang vel, and accel
38-
setpoint.heading_setpoint = M_PI_2;
39-
setpoint.velocity_setpoint = 0.5;
40-
std::vector<ModelState> modelStates;
41-
std::vector<ASMCOutput> asmcOutputs;
42-
std::tie(modelStates, asmcOutputs) = ControllerUtils::update_n(model, controller, setpoint, n);
43-
44-
EXPECT_GT(modelStates[n-1].u, 0);
45-
EXPECT_GT(modelStates[n-1].pose_psi, 0);
46-
}

0 commit comments

Comments
 (0)