Skip to content

Commit

Permalink
Refine the rate definition to enable zero rate
Browse files Browse the repository at this point in the history
  • Loading branch information
tongtybj committed Mar 27, 2022
1 parent a2f0824 commit 55457af
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ namespace hardware_interface

motor_nh.param("rotor_force_noise", rotor_force_noise_, 0.0); // N
motor_nh.param("dual_rotor_moment_noise", dual_rotor_moment_noise_, 0.0);
motor_nh.param("speed_rate", speed_rate_, 1.0); // N/(rad/s) , this is a virtual linear rate of speed-f
motor_nh.param("speed_rate", speed_rate_, 1.0); // rad/s/N , this is a virtual linear rate of speed-f
}

inline std::string getName() const {return name_;}
Expand Down Expand Up @@ -105,7 +105,7 @@ namespace hardware_interface

inline double getSpeed() const
{
return *force_ / speed_rate_;
return *force_ * speed_rate_;
}

private:
Expand Down

0 comments on commit 55457af

Please sign in to comment.