birkelbach / python-canfix Goto Github PK
View Code? Open in Web Editor NEWPython Package for CAN-FIX Aviation Protocol
License: GNU General Public License v2.0
Python Package for CAN-FIX Aviation Protocol
License: GNU General Public License v2.0
Add debug logging to the library
Need to add property methods to the NodeAlarm class for the node, alarm and data properties. Mainly for checking the integrity of the arguments. These errors would eventually be caught, probably by the python-can package, but it'd be better if we caught them at assignment time as it'll be less confusing to the developer.
Add the ability to generate objects completely with arguments to the constructor.
Right now the only argument for most of the classes is a can.bus.Message type that is used to initialize the object. Should expose all of the arguments to assign the rest of the properties for each object.
Need to create properties for setting and getting the value of a parameter. It should check the type of data that is being set and either massage it into the correct type for the parameter or raise an error at this point. Otherwise the bad value winds up in the packing/unpacking logic and is much more difficult to figure out.
An example would be writing an array of bytes. Really bytes are bit fields so they should be written as an array of arrays. [[False]*8]*5] for example If the user passes an array [False]*5 we could massage that. If they pass an integer [0] we could do that too. If they pass a float then we have a problem.
It would be nice to have some kind of constant definitions for the bit indexes for things like the trim switches, autopilot controls and the like. i.e. TRIM_PITCH_UP = 0, TRIM_ROLL_LEFT = 3...
But that key is not present in canfix.xml
After running sudo python3 setup.py install, I had to manually copy the entire canfix/messages directory into the installed egg to get it to work.
Right now the library returns None in a parameters value property if there was not enough data in the can message. i.e. Only two bytes were present and it was a DINT or FLOAT type. Should this raise an exception instead?
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.