Comments (4)
The as_
-methods are not the primary feature of this package, and should probably be removed since they are not fully functional. Either that, or I should add a limitation in the README notifying the user about their flaws. That said, feel free to implement the missing feature if you find it useful.
from cantools.
It seems, that exactly for that issue, it would be easy set a high bit for the extended frame in file cantools/db/formats/dbc.py
for each case where is used message.frame_id
, something like this
...
msg.append(fmt.format(frame_id=message.frame_id | 1<<31 if message.is_extended_frame else 0,
...
Instead of removing the working functionality.
from cantools.
Feel free to create a pull request with the change and I'll review and later merge it. Make sure to modify/add tests to ensure the issue is not reintroduced in the future.
from cantools.
Part of release 20.9.0.
from cantools.
Related Issues (20)
- DBC Decode Message In Error HOT 20
- 39.0.0rc1: cannot import `cantools` due to circular reference HOT 7
- Messages using default GenMsgCycleTime get explicitly serialised HOT 5
- Decode multiplexed signal behaves strange. What am I doing wrong? HOT 4
- How to generate executable files
- AttributeError when loading arxml with empty comments
- Chosing a language for my comments while exporting my database HOT 1
- Using Cantools trying to generate a .dbc file HOT 7
- Help :: How to decode and encode HOT 1
- Different source files packaged in 39.2.0 Windows/Linux HOT 1
- generate_c_source: --use-float should generate float constants
- The signal Does not fit in message HOT 1
- Screen flicker with python -m cantools monitor -c can1 BigFile.arxml HOT 9
- has no UNION node in SIMPLECOMPCONT node HOT 1
- The value for "message.cycle_time" behaves differently depending on the cantools version. HOT 6
- Mux values starting with Alpha in ID fails to convert. HOT 1
- "division by zero" when the scale factor is 0 HOT 4
- DCB file signed 16 bit integer HOT 1
- CAN FD database HOT 7
- Example in the repo not working as expected HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cantools.