Skip to content

Add exprimental DC support#296

Draft
leducp wants to merge 6 commits intomasterfrom
add_dc_support
Draft

Add exprimental DC support#296
leducp wants to merge 6 commits intomasterfrom
add_dc_support

Conversation

@leducp
Copy link
Owner

@leducp leducp commented Feb 26, 2026

related to #126

Fetch DL status at init to compute topology
Fetch received times for DC
Add sync point in timer API
Fix SDO error format when the error is detected by the stack
Cleanup marvin example
@leducp leducp force-pushed the add_dc_support branch 3 times, most recently from d223ac0 to 8d67929 Compare February 27, 2026 10:27
@github-actions
Copy link

github-actions bot commented Feb 27, 2026

File Coverage Lines Branches
All files 74% 76% 72%
lib/include/kickcat/Error.h 87% 91% 83%
lib/include/kickcat/SBufQueue.h 80% 98% 63%
lib/master/include/kickcat/Bus.h 71% 100% 42%
lib/master/src/Bus.cc 82% 84% 80%
lib/master/src/CoE.cc 79% 87% 72%
lib/master/src/Link.cc 98% 100% 97%
lib/master/src/Prints.cc 95% 95% 95%
lib/master/src/Slave.cc 21% 39% 3%
lib/master/src/dc.cc 0% 0% 0%
lib/slave/src/AbstractESC.cc 90% 100% 81%
lib/slave/src/AbstractEmulatedEEPROM.cc 0% 0% 0%
lib/slave/src/ESMStates.cc 92% 98% 87%
lib/slave/src/ESM.cc 92% 93% 90%
lib/slave/src/PDO.cc 45% 54% 37%
lib/slave/src/EEPROM/EEPROM_factory.cc 0% 0% 100%
lib/slave/src/ESC/EmulatedESC.cc 53% 60% 46%
lib/slave/src/ESC/Lan9252.cc 0% 0% 0%
lib/slave/src/slave/Slave.cc 0% 0% 0%
lib/src/Frame.cc 87% 92% 82%
lib/src/Mailbox.cc 64% 71% 56%
lib/src/SIIParser.cc 93% 95% 91%
lib/src/protocol.cc 94% 92% 96%
lib/src/CoE/EsiParser.cc 90% 93% 87%
lib/src/CoE/OD.cc 98% 98% 97%
lib/src/CoE/protocol.cc 93% 93% 94%
lib/src/CoE/CiA/DS402/StateMachine.cc 91% 91% 90%
lib/src/CoE/mailbox/request.cc 80% 84% 76%
lib/src/CoE/mailbox/response.cc 93% 97% 88%
lib/src/EoE/protocol.cc 0% 0% 0%

Minimum allowed coverage is 75%

Generated by 🐒 cobertura-action against f28fcb2

option(DEBUG_DC_INFO "Enable distributed clock info level traces" OFF)
if (DEBUG_DC_INFO)
add_compile_definitions(DEBUG_DC_INFO)
endif() No newline at end of file
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
endif()
endif()

}

auto& easycat = bus.slaves().at(0);
auto& easycat = bus.slaves().at(1);
Copy link
Collaborator

Choose a reason for hiding this comment

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

revert this when time come


printEntryDescription(bus, ingenia, 0x1600, 0,
CoE::SDO::information::ValueInfo::DEFAULT | CoE::SDO::information::ValueInfo::MINIMUM | CoE::SDO::information::ValueInfo::MAXIMUM);
printEntryDescription(bus, ingenia, 0x100A, 0, CoE::SDO::information::ValueInfo::DEFAULT);
Copy link
Collaborator

Choose a reason for hiding this comment

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

not sure why this was changed? Did you test this on an ingenia?

bus.waitForState(State::PRE_OP, 3000ms);


auto map_pdos = [&](uint8_t id)
Copy link
Collaborator

Choose a reason for hiding this comment

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

ah high time we create a global method to remap. I have created an issue #302 :)

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.

2 participants