Git Product home page Git Product logo

stm32f1xx_mpu6000_rosserial's Introduction

Immigrate rosserial to genericSTM32F103CB


junk code don`t read

this repo is just a practice of the course embedded system.Aiming at getting familiar with the fancy tools and fashion framework, I don`t take care of the quality of code.

features

use a opensource flight controller of quadrotor, which named CC3D.

use cubemx and platformio to replace rubbish software keil5.

MPU6000 SPI driver of stm32 HAL library

I really take a hard time at writing the driver and initialization code of MPU6000 (who want to write the initialization code of MPU6000 should take care of the follow code).

  // disable I2C and enable SPI first
  // we should do this at the first time power on
  MPU6000_set_reg(MPU6000_USER_CTRL,BIT_I2C_IF_DIS,hspi);

rosserial immigration

remember to set uart as DMA mode.

change the source code of STM32Hardware.h.

redirection of function printf

the low level interface is nolonger

    int fputc(int char, FILE *stream);

and it changes to

    int _write (int fd, char *pBuffer, int size);

and remember to check your toolchains first!

Each Branch of this Repository

origin the basic implement of rosserial on genericSTM32F103CB

SPI-test use SPI1 to read MPU6000, then use UART1 to send out data.

MPU_6050_DMP the implement of DMP on SPI MPU6000 and messages to ros via UART1.

stm32f1xx_mpu6000_rosserial's People

Contributors

zamesng avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.