linuxdevon / dbc_parser_cpp Goto Github PK
View Code? Open in Web Editor NEWA DBC file parsing library written in C++11.
License: MIT License
A DBC file parsing library written in C++11.
License: MIT License
BU_ field is available, but is empty. According to the documentation there is nothing against an empty BU_ field
http://mcu.so/Microcontroller/Automotive/dbc-file-format-documentation_compress.pdf
VERSION ""
NS_ :
BS_:
BU_:
BO_ 293 Msg1: 2 Vector__XXX
SG_ Wert7 : 0|16@1- (1,0) [0|0] "" Vector__XXX
BO_ 292 Msg2: 8 Vector__XXX
SG_ Wert8 : 56|8@1- (1,0) [0|0] "" Vector__XXX
SG_ Wert6 : 32|24@1- (1,0) [0|0] "km/h" Vector__XXX
SG_ Wert5 : 24|8@1- (1,0) [0|0] "" Vector__XXX
SG_ Wert4 : 0|24@1- (1,0) [0|0] "km/h" Vector__XXX
BO_ 291 Msg3: 8 Vector__XXX
SG_ Wert3 : 48|16@1- (1,0) [0|0] "" Vector__XXX
SG_ Wert2 : 24|8@1- (1,0) [0|0] "" Vector__XXX
SG_ Wert1 : 32|16@1- (1,0) [0|0] "" Vector__XXX
SG_ Speed : 0|24@1- (1,0) [0|0] "km/h" Vector__XXX
Currently only a validity_error() is thrown if the dbc file is not correct. Maybe introducing an enum which will be returned with the error to indicate where the error is located and a function to convert the enum to a string error message.
Lines 204 to 250 in 753119d
Why the what methods are private?
class exception : public std::exception {
const char * what() const throw() {
return "libdbc exception occurred";
}
};
class validity_error : public exception {
const char * what() const throw() {
return "Invalid DBC file...";
}
};
libdbc::Message::m_id has a get accessor ("id()") in message.hpp, but m_size doesn't, is there a specific reason for that?
Happy to raise a pull request if not. :-)
Building with CMake version 3.16 up to 3.22 fails. CMakeLists.txt uses FILE_SET which requires CMake 3.23 but minimum required CMake version is set to 3.16.
Are you planing to implement decoding messages?
I have a german system and therefore "," is used as decimal separator. In this case std::stod expects "," as decimal separator, but the dbc file uses always ".".
Therefore a different approach for converting doubles has to be used
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.