Giter Site home page Giter Site logo

uavcan-examples's Introduction

Nucleo-F446ZE + CubeMX + FreeRTOS

UAVCAN Examples

Main idea to reverse engineer and improve custom gimbal firmware, which was developed on STM32103 and ChibiOS and later skipped. For this reason was selected newer family of microcontrollers such as STM32F4 with board NUCLEO-F446ZE. Now implementing some UAVCAN tutorial examples which will help to renew firmware. With ChibiOS is everything OK, but I like easier to control libraries and Real Time OS, so I have choosed to use HAL libraries (I know they not perfect, maybe later LL) and FreeRTOS (maybe more mature and lightweight). Main issue with HAL libraries and FreeRTOS - they do not support natively C++, however, Libuavcan library are C++. STM32CubeIDE used for better integration and just working debug without any reconfigurations.

Installation

Use the git

git clone https://github.com/raimapo/UAVCAN-examples.git
cd UAVCAN-examples
git submodule update --init --recursive

Usage

STM32CubeIDE

Import each project from dowloaded directory.

IDE -> File -> import

Info on Examples

  1. Simple UAVCAN start
  2. Dynamic ID Client
  3. Dynamic ID Server Centralized control
    a. Help needed
    b. How to corectly implement storage backend for stm32 ?
  4. Publisher
    a. Use UAVCAN Tool GUI to monitor BUS
    b. Subscriber tool in GUI could show data
  5. Subscriber
    a. Use any serial terminal to monitor values
    b. UAVCAN Tool GUI -> Interactive console -> broadcast(uavcan.protocol.debug.KeyValue(key='key', value=123), interval=1) and press ENTER
  6. Service Server
    a. Use UAVCAN Tool GUI -> Interactive console -> request(uavcan.protocol.file.BeginFirmwareUpdate,5) and press ENTER
  7. Service Client
    a. Create in PC any txt document with any text inside
    b. Use UAVCAN Tool GUI -> at bottom left specify file -> launch file server -> in terminal must show SUCCESS and in bus monitor file size)
  8. Custom Data Server
    a. Use in interactive console request(uavcan.thirdparty.custom_data_types.MyNumber, 5). it will print some info from server.
    b. Request for additional data not implemented. Help is welcome.
    c. Data Type ID change and nested Data types are not implemented. Help is welcome.
  9. Custom Data Client
    a. Use any serial terminal to monitor if connection was succesfull
    b. Data response for the server additional request not implemented. Help is welcome.
    c. Needed help on how to use received data. At structure initialization shows "Private" sturcture.
  10. Custom Data Publisher
    a. No response data needed in Custom Data Types
  11. Remote Parameters Config
    a. Use UAVCAN Tool GUI and fetch, save new or erase parameters. Restart the node.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

uavcan-examples's People

Contributors

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