-
Notifications
You must be signed in to change notification settings - Fork 12
Bump 1.4.3 #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Bump 1.4.3 #33
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
b1d8a28
Modified print type error
yun-goon ebce0be
Modified the error about unused id
yun-goon 99e1702
Added switch's default option
yun-goon 32b08ab
Modified unused parameters adding maybe_unused
yun-goon 85b2763
Modified version
yun-goon cdb4d70
Modified Lint
yun-goon 541632c
Merge pull request #32 from ROBOTIS-GIT/feature-modified-build-error
robotpilot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -635,6 +635,8 @@ std::string Dynamixel::DxlErrorToString(DxlError error_num) | |
| return "DLX_HARDWARE_ERROR"; | ||
| case DXL_REBOOT_FAIL: | ||
| return "DXL_REBOOT_FAIL"; | ||
| default: | ||
| return "UNKNOWN_ERROR"; | ||
| } | ||
| } | ||
|
|
||
|
|
@@ -965,15 +967,15 @@ DxlError Dynamixel::ProcessReadCommunication( | |
| dxl_comm_result = group_sync_read->txPacket(); | ||
| if (dxl_comm_result != COMM_SUCCESS) { | ||
| fprintf( | ||
| stderr, "SyncRead Tx Fail [Dxl Size : %d] [Error code : %d]\n", | ||
| stderr, "SyncRead Tx Fail [Dxl Size : %ld] [Error code : %d]\n", | ||
| read_data_list_.size(), dxl_comm_result); | ||
| return DxlError::SYNC_READ_FAIL; | ||
| } | ||
| } else { | ||
| dxl_comm_result = group_bulk_read->txPacket(); | ||
| if (dxl_comm_result != COMM_SUCCESS) { | ||
| fprintf( | ||
| stderr, "BulkRead Tx Fail [Dxl Size : %d] [Error code : %d]\n", | ||
| stderr, "BulkRead Tx Fail [Dxl Size : %ld] [Error code : %d]\n", | ||
| read_data_list_.size(), dxl_comm_result); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| return DxlError::BULK_READ_FAIL; | ||
| } | ||
|
|
@@ -989,15 +991,15 @@ DxlError Dynamixel::ProcessReadCommunication( | |
| dxl_comm_result = group_sync_read->rxPacket(); | ||
| if (dxl_comm_result != COMM_SUCCESS) { | ||
| fprintf( | ||
| stderr, "SyncRead Rx Fail [Dxl Size : %d] [Error code : %d]\n", | ||
| stderr, "SyncRead Rx Fail [Dxl Size : %ld] [Error code : %d]\n", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| read_data_list_.size(), dxl_comm_result); | ||
| return DxlError::SYNC_READ_FAIL; | ||
| } | ||
| } else { | ||
| dxl_comm_result = group_bulk_read->rxPacket(); | ||
| if (dxl_comm_result != COMM_SUCCESS) { | ||
| fprintf( | ||
| stderr, "BulkRead Rx Fail [Dxl Size : %d] [Error code : %d]\n", | ||
| stderr, "BulkRead Rx Fail [Dxl Size : %ld] [Error code : %d]\n", | ||
| read_data_list_.size(), dxl_comm_result); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| return DxlError::BULK_READ_FAIL; | ||
| } | ||
|
|
@@ -1027,9 +1029,8 @@ DxlError Dynamixel::ProcessReadData( | |
| id, | ||
| static_cast<int32_t>(dxl_getdata)); | ||
| } else if (item_names[item_index] == "Present Velocity") { | ||
| *data_ptrs[item_index] = dxl_info_.ConvertValueRPMToVelocityRPS( | ||
| id, | ||
| static_cast<int32_t>(dxl_getdata)); | ||
| *data_ptrs[item_index] = | ||
| dxl_info_.ConvertValueRPMToVelocityRPS(static_cast<int32_t>(dxl_getdata)); | ||
| } else if (item_names[item_index] == "Present Current") { | ||
| *data_ptrs[item_index] = dxl_info_.ConvertCurrentToEffort( | ||
| id, | ||
|
|
@@ -1173,7 +1174,7 @@ DxlError Dynamixel::SetDxlValueToSyncWrite() | |
| param_write_value[added_byte + 0] = DXL_LOBYTE(goal_current); | ||
| param_write_value[added_byte + 1] = DXL_HIBYTE(goal_current); | ||
| } else if (indirect_info_write_[ID].item_name.at(item_index) == "Goal Velocity") { | ||
| int16_t goal_velocity = dxl_info_.ConvertVelocityRPSToValueRPM(ID, data); | ||
| int16_t goal_velocity = dxl_info_.ConvertVelocityRPSToValueRPM(data); | ||
| param_write_value[added_byte + 0] = DXL_LOBYTE(DXL_LOWORD(goal_velocity)); | ||
| param_write_value[added_byte + 1] = DXL_HIBYTE(DXL_LOWORD(goal_velocity)); | ||
| param_write_value[added_byte + 2] = DXL_LOBYTE(DXL_HIWORD(goal_velocity)); | ||
|
|
@@ -1288,7 +1289,7 @@ DxlError Dynamixel::SetDxlValueToBulkWrite() | |
| param_write_value[added_byte + 0] = DXL_LOBYTE(goal_current); | ||
| param_write_value[added_byte + 1] = DXL_HIBYTE(goal_current); | ||
| } else if (indirect_info_write_[ID].item_name.at(item_index) == "Goal Velocity") { | ||
| int32_t goal_velocity = dxl_info_.ConvertVelocityRPSToValueRPM(ID, data); | ||
| int32_t goal_velocity = dxl_info_.ConvertVelocityRPSToValueRPM(data); | ||
| param_write_value[added_byte + 0] = DXL_LOBYTE(DXL_LOWORD(goal_velocity)); | ||
| param_write_value[added_byte + 1] = DXL_HIBYTE(DXL_LOWORD(goal_velocity)); | ||
| param_write_value[added_byte + 2] = DXL_LOBYTE(DXL_HIWORD(goal_velocity)); | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider using
%zuinstead of%ldforsize_tto be more specific.