Skip to content

this python file can convert dbc (canbus) to cpp(cplusplus) function

Notifications You must be signed in to change notification settings

jobgeodev/convert_dbc_to_cpp_file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

convert_dbc_to_cpp_file

this python file can convert dbc (canbus) to cpp(cplusplus) function

步骤

1. 在python环境内安装 cantools

pip install cantools

2. 修改work_dir和namespace

    work_dir = r'/home/wanhy/Project/Github/workspace/python/cantools/dbcs'    
    wrap = build_dbc_cpp_wrap(work_dir, ".", "Skoda")   
    wrap.run()

3. 执行python文件

python  build_dbc_cpp_code.py

4. 格式化代码

vs code or qtcreater

About

this python file can convert dbc (canbus) to cpp(cplusplus) function

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages