Coder Social home page Coder Social logo

robomasters1challenge / robomaster_s1_can_hack Goto Github PK

View Code? Open in Web Editor NEW
100.0 17.0 20.0 2.19 MB

DJI RoboMaster S1 CAN Hack

License: MIT License

C 98.76% C++ 0.75% Assembly 0.45% Shell 0.01% CMake 0.02% Objective-C 0.02%
ros robomaster nucleo-f767zi

robomaster_s1_can_hack's Introduction

DJI RoboMaster S1 ROS Bridge Package

****This repository will migrate to the following repository soon!!! **** https://github.com/RoboMasterS1Challenge/robomaster_s1_ros_reference_design

This package contains a ROS node package and MINI-M4 STM32 firmware for controlling your RoboMaster S1 through the ROS network. (Nucleo-F767ZI Version is discontined.)

What is this?

You can control DJI RoboMaster S1 motion, LED, Blaster and some commands using ROS messages through ROS1 Network. Raspberry Pi 4B and stm32f4 microcontroller emulate Intelligent Controller of RoboMaster S1.

Preparation

You should prepare these items.

PS4 Controller Key Map

  • Left Axis : Linear X and Linear Y
  • Right Axis : Gimbal Pitch and Gimbal Yaw
  • Right Axis push : Blaster
  • L2 : Enable control

How to install

Install ds4drv for PlayStation4(R) Controller

$ sudo pip install ds4drv

$ git clone --recursive https://github.com/tatsuyai713/robomaster_s1_can_hack.git

Please make symbolic link from "ros" folder to your ROS workspace.

How to make controller board

robomaster_s1_can_hack's People

Contributors

tatsuyai713 avatar tatsuyaishikawa-sony avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

robomaster_s1_can_hack's Issues

Can boudrate

What is the can boudrate? I did not find it in the code. Is it 1 or 2 mega boud

Can you clatify the can bus connections for this setup?

We are trying to use this code, but it doesn't work in our setup. We still can control gimbal/blaster via Robomaster app and can capture the canbus packets from the "intelligent" controller, but we cannot control motors ("motion" controller) via both joystick and Robomaster app.

Can you please clarify how to you connect Can Bus'es in your setup?

Cannot get two controllers (intelligent and motion) to communicate with each other

We are trying to use your code (thanks alot for publishing it), but cannot get both controllers to negotiate. So intelligent controller keep sending CAN Bus packets to motion controller and motion controller's light stays red and never turned to blue.

Can you explain which CAN interface need to be connected to each controller? I.e. is it can1 connected to intelligent controller and can2 - to motion controller? Is it opposite? Thanks!

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.