Skip to content

Commit

Permalink
Merge pull request #1752 from RBergua/RBergua-MAP++_linear-springs
Browse files Browse the repository at this point in the history
MAP++ linear spring approach improvement
  • Loading branch information
andrew-platt authored Sep 8, 2023
2 parents 60ac229 + 6381a98 commit 900d12b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/map/src/lineroutines.c
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ MAP_ERROR_CODE solve_linear_spring_cable(Line* line, char* map_msg, MAP_ERROR_CO
};

*(line->H.value) = sqrt(force.x*force.x + force.y*force.y);
*(line->V.value) = fabs(force.z);
*(line->V.value) = -force.z; /* vertical force can be positive or negative. Important for systems with the anchor point above the fairlead connection */
return MAP_SAFE;
};

Expand Down

0 comments on commit 900d12b

Please sign in to comment.