Skip to content

Commit

Permalink
Default CMA in LiftDrag pluginto zero (#2272)
Browse files Browse the repository at this point in the history
* Default CMA in LiftDrag pluginto zero

The changes in #2189 have caused a regression for our upstream users.
This fix disables moment calculations by defaulting Cma to zero. It
should help mitigate some of the regression. There is also an [ongoing
discussion](#2189 (comment)) as to whether the cos term should be cos^2 or cos.

Signed-off-by: Arjo Chakravarty <[email protected]>

* remove cos change to address one problem at a time

Signed-off-by: Arjo Chakravarty <[email protected]>

---------

Signed-off-by: Arjo Chakravarty <[email protected]>
  • Loading branch information
arjo129 authored Dec 27, 2023
1 parent 8ec622d commit 4eb9484
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/systems/lift_drag/LiftDrag.cc
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class gz::sim::systems::LiftDragPrivate
/// \brief Coefficient of Moment / alpha slope.
/// Moment = C_M * q * S
/// where q (dynamic pressure) = 0.5 * rho * v^2
public: double cma = 0.01;
public: double cma = 0.0;

/// \brief angle of attach when airfoil stalls
public: double alphaStall = GZ_PI_2;
Expand Down

0 comments on commit 4eb9484

Please sign in to comment.