Skip to content

Commit

Permalink
linters
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Anderson <[email protected]>
  • Loading branch information
andermi committed Aug 29, 2023
1 parent 563f41e commit 9c47ee0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions buoy_gazebo/src/LatentData/LatentData/LatentData.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ struct LatentData
bool valid() const
{
return inc_wave_heights.valid && \
upper_spring.valid && lower_spring.valid && \
electro_hydraulic.valid;
upper_spring.valid && lower_spring.valid && \
electro_hydraulic.valid;
}

bool operator==(const LatentData & that) const
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ void PolytropicPneumaticSpring::computeLawOfCoolingForce(const double & x, const
// Get chamber surface area from CAD... not true cylinder
// Also, since the chambers wrap around, h (heat transfer constant) is not quite water/steel/gas
const double radius = 0.045;
const double A = (2.0 * this->dataPtr->config_->piston_area) + 2.0*GZ_PI*radius*x;
const double A = (2.0 * this->dataPtr->config_->piston_area) + 2.0 * GZ_PI * radius * x;
const double h = 11.3; // (W/(m^2*K)) -- Water<->Mild Steel<->Gas
this->dataPtr->Q_rate = h * A * dT;

Expand Down Expand Up @@ -276,7 +276,7 @@ void PolytropicPneumaticSpring::computePolytropicForce(const double & x, const d
// dQ/dt = (1 - n/gamma)*(c_p/R)*P*A*dx/dt
// TODO(andermi) get chamber surface area from CAD... not a true cylinder
const double r = 0.045;
const double A = (2.0 * this->dataPtr->config_->piston_area) + 2.0*GZ_PI*r*x;
const double A = (2.0 * this->dataPtr->config_->piston_area) + 2.0 * GZ_PI * r * x;
this->dataPtr->Q_rate =
(1.0 - this->dataPtr->n / PolytropicPneumaticSpringConfig::ADIABATIC_INDEX) * cp_R *
this->dataPtr->P * A * v;
Expand Down

0 comments on commit 9c47ee0

Please sign in to comment.