Code Monkey home page Code Monkey logo

canlib's Introduction

Can Lib

Install

pip install git+https://github.com/eagletrt/canlib.git#egg=canlib

Command Completion

Completion is only available if a script is installed and invoked through an entry point, not through the python command. Once the executable is installed, calling it with a special environment variable will put Click in completion mode.

Bash

Add this to ~/.bashrc:

eval "$(_CANLIB_COMPLETE=bash_source canlib)"

Zsh

Add this to ~/.zshrc:

eval "$(_CANLIB_COMPLETE=zsh_source canlib)"

Fish

Add this to ~/.config/fish/completions/canlib.fish:

eval (env _CANLIB_COMPLETE=fish_source canlib)

canlib's People

Contributors

federico-carbone avatar notfilippo avatar pippo98 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

pippo98

canlib's Issues

Rename `*_FREQUENCY` to `*_INTERVAL`

Tipo da

#define primary_DAS_VERSION_FREQUENCY 1000

a

#define primary_DAS_VERSION_INTERVAL 1000

Essendo che

frequenza = [tempo]^(-1)
intervallo = [tempo]

..mi sento Volpe scusate

Functions that convert messages to char buffers shall return the number of written chars

Tipo

void primary_to_string_HV_VOLTAGE(primary_message_HV_VOLTAGE_conversion* message, char* buffer) {
    sprintf(
        buffer,
        ...
    );
}

diventa

uint16_t primary_to_string_HV_VOLTAGE(primary_message_HV_VOLTAGE_conversion* message, char* buffer) {
    return sprintf(
        buffer,
        ...
    );
}

E questo potrebbe aiutare ad accorgersi di eventuali buffer overflow :)

P.S. Super figo tutto sto supporto alla conversione dei msg in stringhe, gotta love it

#define primary_INTERVAL_ONCE -1

In network.h, così usando gli intervalli il codice viene più chiaro senza il "magic value" -1, ad es: if (primary...INTERVAL == primary_INTERVAL_ONCE)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.