Skip to content
Open
Show file tree
Hide file tree
Changes from 79 commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
6f346b5
Add new subcommand (MDCO) for handling CANopen communication
ELA-Pilgrim Jul 22, 2025
1b82569
refactor: update the branch
ELA-Pilgrim Aug 8, 2025
c3a011e
refactor: gitmodules update
ELA-Pilgrim Aug 8, 2025
447dcd7
Merge remote-tracking branch 'origin/devel' into CS-178-CANOpen
ELA-Pilgrim Aug 8, 2025
ee96070
fix: build error
ELA-Pilgrim Aug 8, 2025
38ccd76
add: add the path to the .eds file in the ini file
ELA-Pilgrim Aug 13, 2025
b2aaa88
refactor:integrate the case Insensitive Equals function content into …
ELA-Pilgrim Aug 13, 2025
b4af148
refactor: fix mdco private menber order
ELA-Pilgrim Aug 13, 2025
83d3e1e
add new struct for move parameter
ELA-Pilgrim Aug 13, 2025
c807c57
fix: typo
ELA-Pilgrim Aug 13, 2025
9c13474
add: new constexpr SDO_REQUEST_BASE
ELA-Pilgrim Aug 13, 2025
2d6c933
fix: mab namespace data type
ELA-Pilgrim Aug 13, 2025
d3b7137
fix: replace std::cout by m_log.
ELA-Pilgrim Aug 13, 2025
f4b99ca
fix: replace c time() function by c++ std::chrono
ELA-Pilgrim Aug 13, 2025
de1dcdd
fix: remove checkSetupError
ELA-Pilgrim Aug 13, 2025
4fa4038
feat: adding a new struct and function for move function
ELA-Pilgrim Aug 14, 2025
2a3a986
fix: New way to send pdo
ELA-Pilgrim Aug 14, 2025
157ab60
fix: doxygen
ELA-Pilgrim Aug 14, 2025
c7dc496
fix: reference argument clean function
ELA-Pilgrim Aug 14, 2025
448fc57
fix: initialise unintialise variable
ELA-Pilgrim Aug 14, 2025
dc73ede
fix: delete undifined function
ELA-Pilgrim Aug 14, 2025
2f1a2e6
fix:bug eds file documentation generation
ELA-Pilgrim Aug 18, 2025
e478592
fix: typo
ELA-Pilgrim Aug 20, 2025
a70eaf9
fix: eds file generation error
ELA-Pilgrim Aug 20, 2025
269eec7
add: CANopen MD config file
ELA-Pilgrim Aug 26, 2025
7d5e54c
fix: remove casting from ModesOfOperation definition
ELA-Pilgrim Aug 26, 2025
bff9241
fix: doxygen comment
ELA-Pilgrim Aug 26, 2025
bbe25eb
fix: remove unused comment
ELA-Pilgrim Aug 26, 2025
4b1fadd
fix: std::vector init
ELA-Pilgrim Aug 26, 2025
6dfd7b2
fix: data return type in dataSizeOfEdsObject function
ELA-Pilgrim Aug 26, 2025
23af4ec
fix: motor param passe by reference
ELA-Pilgrim Aug 26, 2025
81e10c9
fix: cfg file
ELA-Pilgrim Aug 26, 2025
57ac5b8
fix: baud config
ELA-Pilgrim Aug 26, 2025
ba56b03
fix: movement timeout canopen
ELA-Pilgrim Aug 26, 2025
2f83a78
Fix: use error return type for error handling
ELA-Pilgrim Aug 26, 2025
499778a
fix: moving big function from hpp to cpp
ELA-Pilgrim Aug 27, 2025
3c68df7
fix: less nesting in writeLongOpenRegisters function
ELA-Pilgrim Aug 27, 2025
8c51559
fix: less nesting in testHeartbeat function
ELA-Pilgrim Aug 27, 2025
b133234
fix: SPI for MD in CANopen
ELA-Pilgrim Aug 27, 2025
351999d
Merge branch 'devel' into CS-178-CANOpen
ELA-Pilgrim Aug 28, 2025
ca03a26
Merge branch 'devel' into CS-178-CANOpen
ELA-Pilgrim Aug 29, 2025
4f454ad
fix: changing baudrate into datarate
ELA-Pilgrim Aug 29, 2025
c6894a9
fix: add OD.cpp to candlelib source
ELA-Pilgrim Sep 1, 2025
7d146a8
fix: SPI with mdco
ELA-Pilgrim Sep 1, 2025
c8ce5ca
Merge branch 'devel' into CS-178-CANOpen
ELA-Pilgrim Sep 1, 2025
404dc03
fix: remove unsed function
ELA-Pilgrim Sep 1, 2025
d409729
fix: remove unsed code
ELA-Pilgrim Sep 1, 2025
3d05adf
fix: fix SDO display
ELA-Pilgrim Sep 2, 2025
10296a0
fix: mdco ui
ELA-Pilgrim Sep 2, 2025
c5d696c
Merge branch 'devel' into CS-178-CANOpen
ELA-Pilgrim Sep 3, 2025
ea41afa
fix: fuse candletoolCO into mdco_cli
ELA-Pilgrim Sep 5, 2025
721d9ad
add: user example for mdco & eds
ELA-Pilgrim Sep 5, 2025
a66ab9b
fix: eds cpp file genereation
ELA-Pilgrim Sep 5, 2025
873bbc7
fix: seperate candletoolco.ini from candletool.ini
ELA-Pilgrim Sep 8, 2025
9ed55b9
add: basic python example with can open
ELA-Pilgrim Sep 9, 2025
49bf19f
Merge branch 'devel' of https://github.com/mabrobotics/CANdle-SDK int…
ELA-Pilgrim Sep 9, 2025
84a78a4
fix: add flag for sending classic can frame
ELA-Pilgrim Sep 9, 2025
95d8f34
fix: Can open example
ELA-Pilgrim Sep 10, 2025
a34df60
add: python advance examples
ELA-Pilgrim Sep 11, 2025
c6def51
fix: cleaning
ELA-Pilgrim Sep 12, 2025
7ad771c
add: MDCO_test file
ELA-Pilgrim Sep 16, 2025
078d111
add: unit test for MDCO
ELA-Pilgrim Sep 16, 2025
da78075
fix: unit test MDCO read
ELA-Pilgrim Sep 16, 2025
f9f43a8
fix: unit test simulate message receive
ELA-Pilgrim Sep 16, 2025
3df9f10
fix: delete unused print
ELA-Pilgrim Sep 16, 2025
0837175
fix: clean mdco_cli file
ELA-Pilgrim Sep 18, 2025
9c86534
fix: simplify upload and download function
ELA-Pilgrim Sep 19, 2025
22dcef1
fix: remove unused function
ELA-Pilgrim Sep 22, 2025
218300e
fix: remove french variable name
ELA-Pilgrim Sep 23, 2025
144be19
add: user comment in mdco part
ELA-Pilgrim Sep 25, 2025
53b3348
fix: set default value of move parameter to 0
ELA-Pilgrim Sep 29, 2025
105edca
fix: move ModeOFOperation move in commons
ELA-Pilgrim Sep 29, 2025
a0cb754
fix: CMakeLists for OD.cpp
ELA-Pilgrim Sep 29, 2025
46fadd4
fix: move OD into candlelib
ELA-Pilgrim Sep 29, 2025
e874bb9
fix: restore test for CANfd
ELA-Pilgrim Sep 29, 2025
a5f62c7
fix: use camelCase
ELA-Pilgrim Sep 29, 2025
79b1c07
add: comment for regex line
ELA-Pilgrim Sep 29, 2025
bd28d49
fix: use filesystem::path instead of string
ELA-Pilgrim Sep 29, 2025
56c7706
add: add helper function to convert number into u32 value
ELA-Pilgrim Sep 29, 2025
87c2ecd
fix: add movement to mdco_impedance example
ELA-Pilgrim Sep 29, 2025
455a078
fix: remove memcpy from user example
ELA-Pilgrim Sep 29, 2025
bf28ab1
fix: remove candletool dependance for user example
ELA-Pilgrim Sep 29, 2025
9b1dd1f
fix: remove toHex function
ELA-Pilgrim Sep 29, 2025
b4408e5
fix: move include in ifndef
ELA-Pilgrim Sep 29, 2025
802dcc3
fix:remove unused function
ELA-Pilgrim Sep 29, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@
"cSpell.words": [
"Bootloader",
"Candletool",
"Devcontainers"
"Devcontainers",
"MDCO"
],
"C_Cpp.default.compileCommands": "${workspaceFolder}/build/compile_commands.json",
}
11 changes: 10 additions & 1 deletion candlelib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,14 @@ target_sources(
${UNIX_ONLY_SOURCES}
src/communication_interface/USB.cpp
src/MD/MD.cpp
src/MD/MDCO.cpp
src/pds/pds.cpp
src/pds/pds_module.cpp
src/pds/pds_protocol.cpp
src/pds/power_stage.cpp
src/pds/brake_resistor.cpp
src/pds/isolated_converter.cpp)
src/pds/isolated_converter.cpp
src/objectDictionary/OD.cpp )

if(UNIX)
target_compile_definitions(candle PRIVATE UNIX)
Expand All @@ -69,6 +71,8 @@ target_include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/src/communication_device
${CMAKE_CURRENT_SOURCE_DIR}/src/communication_interface
${CMAKE_CURRENT_SOURCE_DIR}/../commons/logger
${CMAKE_CURRENT_SOURCE_DIR}/../candletool/include
${CMAKE_CURRENT_SOURCE_DIR}/src/objectDictionary
${LIBUSB_INCLUDE_DIR})
target_include_directories(candle SYSTEM PRIVATE ${LIBUSB_INCLUDE_DIR})
if(UNIX)
Expand Down Expand Up @@ -139,4 +143,9 @@ if(MAKE_TESTS)
target_include_directories(md_v2_test PRIVATE include src/MD/)
target_link_libraries(md_v2_test PRIVATE logger shared_data candle)

add_unit_test_executable(mdco_v2_test src/MD/MDCO_test.cpp)
target_sources(mdco_v2_test PRIVATE src/MD/MDCO.cpp)
target_include_directories(mdco_v2_test PRIVATE include src/MD/)
target_link_libraries(mdco_v2_test PRIVATE logger shared_data candle)

endif()
4 changes: 3 additions & 1 deletion candlelib/src/MD/MD.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,10 @@ namespace mab
auto readRegResult = transferCanFrame(frame, DEFAULT_RESPONSE_SIZE);

MdFrameId_E frameId = (MdFrameId_E)readRegResult.first.at(0);

if (frameId == MdFrameId_E::RESPONSE_LEGACY || frameId == MdFrameId_E::WRITE_REGISTER)
return Error_t::OK; // TODO: Possible do smth with received data?

else
{
m_log.error("Error in the register write response!");
Expand Down Expand Up @@ -513,4 +515,4 @@ namespace mab
}
};

} // namespace mab
} // namespace mab
Loading
Loading