Coder Social home page Coder Social logo

dange0 / can2joystick Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aarossig/can-joystick

0.0 0.0 0.0 8 KB

A simple utility to create a uinput joystick from the CAN bus of a vehicle.

License: Apache License 2.0

C++ 95.90% Makefile 4.10%

can2joystick's Introduction

CAN Joystick

Overview

A small project that monitors the CAN bus of a vehicle and creates a uinput virtual joystick. This allows the car to be used as an input device to any simulators/games.

Warranty

This code comes with no warranty. It is for educational purposes only. If you chose to use this code with your vehicle it is at your own risk. The authors do not advise that you do this. Any and all damages resulting from the use of this project are your responsibility.

Hardware

This code uses the ViewTool Ginkgo USB-CAN bridge and complimenting libusbcan.

Building

This project uses git submodules. Be sure to initialize them first:

git submodule init
git submodule update

Alternatively, you can clone with --recurse-submodules to achieve the same.

Once the project has been setup, the build is as simple as invoking:

make

Running

Once the project has compiled successfully, use the following to run the tool. The LD_LIBRARY_PATH must be supplied to allow the application to find the shared object for communicating with the ViewTool device.

In addition, sudo is used to allow hardware access. This could probably be avoided with udev rules.

sudo LD_LIBRARY_PATH=libusbcan/lib/linux_64bit ./canjoystick

can2joystick's People

Contributors

aarossig avatar

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.