Skip to content

Commit

Permalink
Fixed lint errors
Browse files Browse the repository at this point in the history
Signed-off-by: Ayush1285 <[email protected]>
  • Loading branch information
Ayush1285 committed May 25, 2024
1 parent 70fba9c commit e27bc55
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,18 @@ class MotionModel
float wz_last = state.wz(0, 0);
for (unsigned int i = 0; i != state.vx.shape(0); i++) {
for (unsigned int j = 1; j != state.vx.shape(1); j++) {
float& cvx_curr = state.cvx(i, j - 1);
float & cvx_curr = state.cvx(i, j - 1);
cvx_curr = std::clamp(cvx_curr, vx_last + min_delta_vx, vx_last + max_delta_vx);
state.vx(i, j) = cvx_curr;
vx_last = cvx_curr;
vx_last = cvx_curr;

float& cwz_curr = state.cwz(i, j - 1);
float & cwz_curr = state.cwz(i, j - 1);
cwz_curr = std::clamp(cwz_curr, wz_last - max_delta_wz, wz_last + max_delta_wz);
state.wz(i, j) = cwz_curr;
wz_last = cwz_curr;

if (is_holo) {
float& cvy_curr = state.cvy(i, j - 1);
float & cvy_curr = state.cvy(i, j - 1);
cvy_curr = std::clamp(cvy_curr, vy_last - max_delta_vy, vy_last + max_delta_vy);
state.vy(i, j) = cvy_curr;
vy_last = cvy_curr;
Expand All @@ -126,7 +126,8 @@ class MotionModel

protected:
float model_dt_{0.0};
models::ControlConstraints control_constraints_{0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f};
models::ControlConstraints control_constraints_{0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f,
0.0f};
};

/**
Expand Down

0 comments on commit e27bc55

Please sign in to comment.