Giter Site home page Giter Site logo

Comments (2)

rdelvax avatar rdelvax commented on September 28, 2024 1

Thank you so much!!
I copied the example I had for initializing. Apparently I overlooked this obvious mistake.
It works ! Thank you very much!

from vjoyserialfeeder.

Cleric-K avatar Cleric-K commented on September 28, 2024

I think the problem comes from IBus ibus(NUM_CHANNEL);
you should create the object with argument 8. Currently you're giving it 7. This sets the IBUS frame to be 18 bytes long: 7 channels 2 bytes each (14 bytes) + 2 header bytes in the beginning + 2 bytes bytes at the end for checksum. Yet in the loop you actually send all 8 channels, thus at the receiving end, where you send the 8th channel vjoysf expect the checksum.

You should change NUM_CHANNEL to MAX_CHANNEL and it should work. Also, hit the Setup of the IBUS protocol and make sure to check the use 16bit channel values. This is not strictly necessary.

from vjoyserialfeeder.

Related Issues (20)

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.