Skip to content

Commit

Permalink
fix last push
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Anderson <[email protected]>
  • Loading branch information
andermi committed Sep 10, 2023
1 parent dadcc18 commit 2f0f097
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions buoy_gazebo/src/ElectroHydraulicPTO/ElectroHydraulicPTO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,8 @@ void ElectroHydraulicPTO::PreUpdate(
const double N = this->dataPtr->x[0U];
double deltaP = this->dataPtr->x[1U];
double VBus = this->dataPtr->x[2U];
const double eff_m = this->hyd_eff_m.eval(fabs(N));
const double eff_v = this->hyd_eff_v.eval(fabs(deltaP));
const double eff_m = this->dataPtr->functor.hyd_eff_m.eval(fabs(N));
const double eff_v = this->dataPtr->functor.hyd_eff_v.eval(fabs(deltaP));

VBus = std::min(VBus, this->dataPtr->MaxTargetVoltage);
double BusPower = this->dataPtr->functor.BusPower;
Expand Down
1 change: 1 addition & 0 deletions buoy_gazebo/src/LatentData/LatentData/LatentData.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ struct AirSpring
double dQ_dt{0.0}; // heat loss rate
double piston_position{0.0}; // meters
double piston_velocity{0.0}; // m/s
double mass{0.0}; // kg

bool operator==(const AirSpring & that) const
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -572,9 +572,9 @@ void PolytropicPneumaticSpring::PreUpdate(

if (this->dataPtr->config_->is_upper) {
spring_state.range_finder = x;
spring_state.upper_psi = PASCAL_TO_PSI * this->dataPtr->P;
spring_state.upper_psi = this->dataPtr->P / buoy_utils::PASCAL_PER_PSI;
} else {
spring_state.lower_psi = PASCAL_TO_PSI * this->dataPtr->P;
spring_state.lower_psi = this->dataPtr->P / buoy_utils::PASCAL_PER_PSI;
}

_ecm.SetComponentData<buoy_gazebo::components::SpringState>(
Expand Down

0 comments on commit 2f0f097

Please sign in to comment.