Skip to content

Commit

Permalink
changed how the string is passed
Browse files Browse the repository at this point in the history
  • Loading branch information
VincidaB committed Apr 29, 2024
1 parent ead5415 commit 6c0f279
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion actuators_rppico_hardware_interface/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.16)
project(actuators_rppico_h_i LANGUAGES CXX)

if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)")
add_compile_options(-Wall -Wextra -Wno-unused-variable)
add_compile_options(-Wno-unused-variable)
endif()

# find dependencies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,11 @@ hardware_interface::CallbackReturn ActuatorsRpPicoHardware::on_deactivate(
hardware_interface::return_type ActuatorsRpPicoHardware::read(
const rclcpp::Time & /*time*/, const rclcpp::Duration & period)
{

if (!comms_.connected())
{
return hardware_interface::return_type::ERROR;
}

return hardware_interface::return_type::OK;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ class Servo

Servo() = default;

Servo(const std::string &servo_name, int servo_number)
Servo(const std::string servo_name, int servo_number)
{
setup(servo_name, servo_number);
}


void setup(const std::string &servo_name, int servo_number)
void setup(const std::string servo_name, int servo_number)
{
name = servo_name;
this->servo_number = servo_number;
Expand Down

0 comments on commit 6c0f279

Please sign in to comment.