Git Product home page Git Product logo

wcf-demo's Introduction

WCF

Overview

Some sample codes for the Wahba Complementary Filter (WCF) introduced in 1. The same core algorithm was also used in UPsat. Main algorithm (not the adaptive one) is at wahba_rot.c and the SVD is at jacobiTS.c. Intead of the slight speed optimized one used in the paper a more general is provided here.

[1] P. Marantos, Y. Koveos and K. J. Kyriakopoulos, "UAV State Estimation Using Adaptive Complementary Filters," in IEEE Transactions on Control Systems Technology, vol. 24, no. 4, pp. 1214-1226, July 2016.

Hardware Dependencies for the demo

  • STM32F4xx with 12MHz crystal! If use is on STM32F4DISCOVERY change makefile option COMPILE_OPTS+=-DHSE_VALUE=12000000 to 8000000
  • LSM9DS0 is assumed at PB10, PB11
  • USB configured is OTG_FS at PA8-12

Software Dependencies for the demo

  • GCC, tested with gcc-arm-none-eabi-6_2-2016q4
  • Openocd

How to use

  • Change the 1st line of the makefile (ARMGCC_PATH = /usr/local/gcc-arm-none-eabi-6_2-2016q4/bin/) to your compiler's path
  • In SysTick_Handler in main.c change sprintf output format appropriately, it should give the Euler angles by default
  • To use the filter use wahba_StructInit() to initialise the filter, weight, etc. and wahba_rot to update rotation estimation
make -j4
make flash
sudo cat /dev/ttyACM0

Disclaimer

Obviously a not well documented and draft code (that is Use at your own risk..)

wcf-demo's People

Contributors

ykoveos avatar

Watchers

James Cloos avatar  avatar

Forkers

wuyou33

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.