Swapped AMC0 and AMC1

This commit is contained in:
2026-02-05 11:50:57 +01:00
parent 6156657c2e
commit a0f08f7b76
4 changed files with 4 additions and 4 deletions

View File

@@ -46,7 +46,7 @@ def generate_launch_description():
condition=UnlessCondition(LaunchConfiguration('local_test')),
parameters=[{
'odom': "odom",
'serial_path': "/dev/ttyACM0",
'serial_path': "/dev/ttyACM1",
}],
emulate_tty=True,

View File

@@ -33,7 +33,7 @@ def generate_launch_description():
condition=UnlessCondition(LaunchConfiguration('local_test')),
parameters=[{
'odom': "odom",
'serial_path': "/dev/ttyACM0",
'serial_path': "/dev/ttyACM1",
}],
emulate_tty=True,

View File

@@ -11,7 +11,7 @@ CallbackReturn mg::MgStepperInterface::on_init(const hardware_interface::Hardwar
if (info_.hardware_parameters.find("device_path") != info.hardware_parameters.end()) {
serial_port_name = info_.hardware_parameters["device_path"];
} else {
serial_port_name = "/dev/ttyACM1";
serial_port_name = "/dev/ttyACM0";
}
left_wheel_pos_state = 0;

View File

@@ -23,7 +23,7 @@
#define TIMEOUT 10u
constexpr const char* ENCODER_SERIAL_PATH_DEFAULT = "/dev/ttyACM0";
constexpr const char* ENCODER_SERIAL_PATH_DEFAULT = "/dev/ttyACM1";
using SendDoubleSrv = mg_msgs::srv::SendDouble;
using ZeroSrv = std_srvs::srv::Empty;