Skip to content

Add a generic DS402 drive class#395

Open
leducp wants to merge 1 commit into
masterfrom
ds402_generic_drive
Open

Add a generic DS402 drive class#395
leducp wants to merge 1 commit into
masterfrom
ds402_generic_drive

Conversation

@leducp
Copy link
Copy Markdown
Owner

@leducp leducp commented May 29, 2026

close #396

@leducp leducp force-pushed the ds402_generic_drive branch from 3b0f6df to ff14ed8 Compare May 29, 2026 10:11
@leducp leducp force-pushed the ds402_generic_drive branch from ff14ed8 to 3978e70 Compare May 29, 2026 14:58
@github-actions
Copy link
Copy Markdown

File Coverage Lines Branches
All files 78% 81% 75%
lib/include/kickcat/Error.h 91% 100% 83%
lib/include/kickcat/SBufQueue.h 80% 98% 63%
lib/master/include/kickcat/SIIParser.h 91% 100% 83%
lib/master/src/Bus.cc 91% 92% 89%
lib/master/src/CoE.cc 61% 71% 51%
lib/master/src/Link.cc 98% 100% 97%
lib/master/src/MailboxSequencer.cc 97% 100% 94%
lib/master/src/MasterOD.cc 99% 99% 100%
lib/master/src/Prints.cc 95% 95% 95%
lib/master/src/Slave.cc 27% 42% 12%
lib/master/src/dc.cc 0% 0% 0%
lib/master/src/CoE/CiA/DS402/Drive.cc 62% 79% 44%
lib/slave/src/AbstractESC.cc 92% 100% 84%
lib/slave/src/AbstractEmulatedEEPROM.cc 0% 0% 0%
lib/slave/src/ESMStates.cc 96% 98% 94%
lib/slave/src/ESM.cc 95% 100% 90%
lib/slave/src/PDO.cc 92% 97% 88%
lib/slave/src/ESC/EmulatedESC.cc 57% 63% 51%
lib/slave/src/ESC/Lan9252.cc 0% 0% 0%
lib/src/Frame.cc 98% 100% 97%
lib/src/Mailbox.cc 89% 93% 85%
lib/src/SIIParser.cc 40% 50% 30%
lib/src/protocol.cc 90% 87% 92%
lib/src/CoE/OD.cc 98% 98% 98%
lib/src/CoE/protocol.cc 93% 93% 94%
lib/src/CoE/CiA/DS402/StateMachine.cc 93% 94% 92%
lib/src/CoE/mailbox/request.cc 80% 84% 76%
lib/src/CoE/mailbox/response.cc 91% 96% 87%
lib/src/ESI/Parser.cc 87% 90% 83%
lib/src/EoE/protocol.cc 0% 0% 0%

Minimum allowed coverage is 75%

Generated by 🐒 cobertura-action against 3978e70

@leducp leducp requested a review from trns1997 May 29, 2026 15:06
@@ -0,0 +1,7 @@
if (PIKEOS)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we want to continue pike os support? I am not sure we have the material to validate its working

bus.finalizeDatagrams();
bus.processAwaitingFrames();
}
catch (...) {}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmmm this should throw no?

if (out_ != nullptr)
{
out_->control_word = control::word::DISABLE_VOLTAGE;
out_->target_position = 0;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why set to 0? I think this should keep last position like we do in attach

catch (std::exception const& e)
{
std::cerr << "[" << i << "] " << e.what() << std::endl;
continue;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't we drive.update() before continue? Do you not want to refresh even if there is a problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a generic DS402 drive

2 participants