Skip to content

Commit

Permalink
Merge branch 'andermi/incoming_wave_service' into andermi/latent_data
Browse files Browse the repository at this point in the history
  • Loading branch information
andermi committed Aug 31, 2023
2 parents 9c47ee0 + 2d88d78 commit 54bd6ed
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ rosdep init
rosdep update
rosdep install --from-paths ./ -i -y -r --rosdistro $ROS_DISTRO

git clone -b v1.3.0 --single-branch https://github.com/hamilton8415/FreeSurfaceHydrodynamics.git
git clone -b v1.3.1 --single-branch https://github.com/hamilton8415/FreeSurfaceHydrodynamics.git
cd FreeSurfaceHydrodynamics
touch COLCON_IGNORE
mkdir build
Expand Down
4 changes: 2 additions & 2 deletions buoy_description/models/mbari_wec/model.sdf.em
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ if not ignore_piston_mean_pos:
<initial_piston_position>@(initial_piston_position)</initial_piston_position>
<!-- measure of valve opening cross-section and duration (meter-seconds) -->
<valve_absement>7.77e-6</valve_absement>
<pump_absement>4.3e-8</pump_absement>
<pump_absement>5.5e-8</pump_absement>
<pump_pressure>1.7e+6</pump_pressure>
<stroke>2.03</stroke>
<piston_area>@(Ap_u)</piston_area>
Expand All @@ -247,7 +247,7 @@ if not ignore_piston_mean_pos:
<is_upper>false</is_upper>
<!-- measure of valve opening cross-section and duration (meter-seconds) -->
<valve_absement>7.77e-6</valve_absement>
<pump_absement>4.3e-8</pump_absement>
<pump_absement>5.5e-8</pump_absement>
<pump_pressure>1.7e+6</pump_pressure>
<stroke>2.03</stroke>
<piston_area>@(Ap_l)</piston_area>
Expand Down
4 changes: 2 additions & 2 deletions buoy_gazebo/src/ElectroHydraulicPTO/ElectroHydraulicPTO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ void ElectroHydraulicPTO::PreUpdate(
// Apply force if not in Velocity Mode, in which case a joint velocity is applied elsewhere
// (likely by a test Fixture)
if (!this->dataPtr->VelMode) {
double piston_force = -deltaP * this->dataPtr->PistonArea;
double piston_force = -deltaP * this->dataPtr->PistonArea * buoy_utils::NEWTONS_PER_LB;
// Create new component for this entitiy in ECM (if it doesn't already exist)
auto forceComp = _ecm.Component<gz::sim::components::JointForceCmd>(
this->dataPtr->PrismaticJointEntity);
Expand All @@ -473,7 +473,7 @@ void ElectroHydraulicPTO::PreUpdate(
this->dataPtr->PrismaticJointEntity,
gz::sim::components::JointForceCmd({piston_force})); // Create this iteration
} else {
forceComp->Data()[0] += piston_force; // Add force to existing forces.
forceComp->Data()[0] += piston_force; // Add force to existing forces.
}
}
}
Expand Down
1 change: 1 addition & 0 deletions buoy_gazebo/src/buoy_utils/Constants.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ static constexpr double RPM_TO_RAD_PER_SEC{2.0 * M_PI / 60.0};
static constexpr double NM_PER_INLB{0.112984829};
static constexpr double INLB_PER_NM{8.851};
static constexpr double INCHES_PER_METER{39.4};
static constexpr double NEWTONS_PER_LB{4.4482};
} // namespace buoy_utils


Expand Down

0 comments on commit 54bd6ed

Please sign in to comment.