Skip to content

Commit

Permalink
fix(hesai_ros_wrapper): reject sync_angle = 360 as this will crash th…
Browse files Browse the repository at this point in the history
…e sensors
  • Loading branch information
mojomex committed Aug 30, 2024
1 parent 1046846 commit acf2a49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nebula_ros/src/hesai/hesai_ros_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ nebula::Status HesaiRosWrapper::DeclareAndGetSensorConfigParams()

{
rcl_interfaces::msg::ParameterDescriptor descriptor = param_read_write();
descriptor.integer_range = int_range(0, 360, 1);
descriptor.integer_range = int_range(0, 359, 1);
config.sync_angle = declare_parameter<uint16_t>("sync_angle", descriptor);
}

Expand Down

0 comments on commit acf2a49

Please sign in to comment.