Skip to content

Commit

Permalink
Updated Electrical Loss Model
Browse files Browse the repository at this point in the history
  • Loading branch information
hamilton8415 committed Oct 4, 2023
1 parent 22a9c9c commit 355fe4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions buoy_gazebo/src/ElectroHydraulicPTO/ElectroHydraulicSoln.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ struct ElectroHydraulicSoln : Functor<double>
static constexpr double HydMotorDisp{0.30}; // Default to Parker F11-5 0.30in^3/rev

// Friction Loss Model constants
static constexpr double tau_c{.1}; // N-m
static constexpr double k_v{.06 / 1000.0}; // N-m/RPM
static constexpr double tau_c{.1596}; // N-m
static constexpr double k_v{.12897 / 1000.0}; // N-m/RPM
static constexpr double k_th{100.0};

// Switching Loss Model constants
static constexpr double k_switch{0.05}; // W/Volt
static constexpr double k_switch{0.1713}; // W/Volt

// Winding Resitance Loss Model constants
static constexpr double R_w{0.8}; // Ohms
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <simple_interp/interp1d.hpp>

// Defines from Controller Firmware, behavior replicated here
#define TORQUE_CONSTANT 0.438 // 0.62 N-m/ARMS 0.428N-m/AMPS Flux Current
#define TORQUE_CONSTANT .4580 // 0.438 // 0.62 N-m/ARMS 0.428N-m/AMPS Flux Current
#define CURRENT_CMD_RATELIMIT 200 // A/second. Set to zero to disable feature
#define TORQUE_CMD_TIMEOUT 2 // Torque Command Timeut, in secs. Set to zero to disable timeout
#define BIAS_CMD_TIMEOUT 10 // Bias Current Command Timeut, secs. Set to zero to disable timeout
Expand Down

0 comments on commit 355fe4a

Please sign in to comment.