GithubHelp home page GithubHelp logo

cybergear's Issues

关于CAN帧协议

https://github.com/Tony607/Cybergear/blob/5da4240b276ac4c7c7bddbe00afa9ebe58292ca9/01_web_simple_control/main.py#L26C8-L26C8

send_command('41 54 90 07 eb fc 08 05 70 00 00 07 01 95 54 0d 0a')

按照小米提供的文档,
41 54 是USB CAN模块的帧头 0d 0a 是USB CAN模块的帧尾

90 07 eb fc 前4字节组成 CAN_ID ,这里是写入单个参数

08 推测是USB CAN模块,用于区分 CAN_ID 和 CAN_DATA 的分隔符

05 70 00 00 07 01 95 54 后8字节作为数据字节, 其中

05 70 是 参数 index ,对应电机运行模式,

07 01 95 54 是具体的参数,但是根据文档,电机运行模式的参数值只有 0 1 2 3 这几个选项,不太明白这里为什么设置的是这个值

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.