Giter VIP home page Giter VIP logo

nanobot's Introduction

nanobot

This github repository stores a basic example of how to control CTRE products over the CAN bus, using Java on a Nvidia Jetson Nano with a CANable USB to CAN adapter. This code is heavily based on the CTRE Phoenix-Linux-SocketCAN-Example, specifically the addJava branch.

Prepping the Jetson nano

In order to set up the Jetson Nano these steps should be followed. Assuming that you do not want to do computer vision on the Jetson Nano, you can stop after completing the jtop step.

Software Setup

The software setup steps provided by CTRE should be followed. These directions should setup all of the CAN specific software needed for using the code example in this repository.

"Access Denied" error when flashing CANable with web interface

In order to solve this error, the web browser should be run with administrator privileges. On the Jetson this can be done by closing Chromium and running the command sudo chromium-browser --no-sandbox

Running example

In order to run the example in this repository the repository must first be cloned onto the Jetson:

git clone https://github.com/Maciej4/nanobot

After navigating into the repository, the permissions on run.sh need to be changed. This can be done by using the command:

chmod a+x run.sh

The run.sh script compiles and runs Example.java. Example.java has a commented line that spins a attached Talon FX with CAN ID 1 at 0.1 or 10%. It also runs the diagnostic server, which allows the configuration of the CAN bus using Phoenix Tuner. This is done by finding the IP of the Jetson Nano based on the instructions found here and putting the IP Adress into the Diagnostic Server Address field of the Robot Controller Install tab. At this point the devices connected to the CAN bus on the Jetson should appear on the CAN Devices tab.

nanobot's People

Contributors

maciej4 avatar

Watchers

 avatar  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.