Skip to content

Commit

Permalink
Remove wheel torque constant parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
bjsowa committed Aug 8, 2022
1 parent 1cab5d7 commit ff2804e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion include/parameters.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ struct Parameters : diff_drive_lib::DiffDriveParams {
Parameters() {
// Wheel
wheel_encoder_resolution = 878.4F;
wheel_torque_constant = 1.17647F;
wheel_torque_constant = 1.0F;
wheel_pid_p = 0.0F;
wheel_pid_i = 0.005F;
wheel_pid_d = 0.0F;
Expand Down
6 changes: 0 additions & 6 deletions src/parameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

static constexpr const char* wheel_encoder_resolution_param_name =
"wheels/encoder_resolution";
static constexpr const char* wheel_torque_constant_param_name =
"wheels/torque_constant";
static constexpr const char* wheel_pid_p_param_name = "wheels/pid/p";
static constexpr const char* wheel_pid_i_param_name = "wheels/pid/i";
static constexpr const char* wheel_pid_d_param_name = "wheels/pid/d";
Expand Down Expand Up @@ -47,8 +45,6 @@ bool Parameters::init(rclc_parameter_server_t* param_server) {
RCCHECK(init_parameter_double(param_server,
wheel_encoder_resolution_param_name,
wheel_encoder_resolution))
RCCHECK(init_parameter_double(param_server, wheel_torque_constant_param_name,
wheel_torque_constant))
RCCHECK(
init_parameter_double(param_server, wheel_pid_p_param_name, wheel_pid_p))
RCCHECK(
Expand Down Expand Up @@ -81,8 +77,6 @@ inline void get_parameter_double(rclc_parameter_server_t* param_server,
void Parameters::update(rclc_parameter_server_t* param_server) {
get_parameter_double(param_server, wheel_encoder_resolution_param_name,
&wheel_encoder_resolution);
get_parameter_double(param_server, wheel_torque_constant_param_name,
&wheel_torque_constant);
get_parameter_double(param_server, wheel_pid_p_param_name, &wheel_pid_p);
get_parameter_double(param_server, wheel_pid_i_param_name, &wheel_pid_i);
get_parameter_double(param_server, wheel_pid_d_param_name, &wheel_pid_d);
Expand Down

0 comments on commit ff2804e

Please sign in to comment.