GithubHelp home page GithubHelp logo

smv-c-decoder's Introduction

SMV C Decoder

Overview

This small C software decodes messages sent by an Smart Miniature Vane (SMV) from Simtec AG https://www.swiss-airdata.com/ and print the result on the terminal. It has been designed to run on a Windows computer and requires the usage of a RS485 to USB converter for SMV-1 or RS232 to USB converter for SMV-2. Contact Simtec for more details or for a preconfigured and assembled cable.

Details about the format used to send the air data can be found in the Datasheet.

The following example shows the output of the decoder to the terminal:

2.95° (AOS)
2.88° (AOS)
2.75° (AOS)
2.64° (AOS)
2.49° (AOS)
1.21° (AOS)
0.91° (AOS)
0.77° (AOS)
0.64° (AOS)
0.53° (AOS)
0.42° (AOS)
0.31° (AOS)
0.20° (AOS)
0.14° (AOS)
0.09° (AOS)
0.05° (AOS)
-0.02° (AOS)
-0.08° (AOS)
-0.17° (AOS)
-0.68° (AOS)
-2.59° (AOS)
-2.65° (AOS)
-2.72° (AOS)

Usage

Compilation

Simply execute the following command:

make compile

Execution

Launch the following command:

decode serial-port 

Arguments:

  • serial-port: Serial port on which the swiss air-data computer is connected.

Example calls:

decode COM3
decode COM7

Integration

This software has been developed with the goal to ease its reusability as much as possible.

The core decoder smv_decoder.c and smv_decoder.h has been implemented to run on almost any hardware. It only requires to have the C standard librairies stdint, stdlib and errno. You can very well take those two files and integrate them in your own code to run on a flight control computer for instance.

Notes

Compiled with gcc version 10.2.0 (GCC) on windows 10 with mingw64 http://mingw-w64.org/doku.php.

Example code only. Use at own risk.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Simtec AG has no obligation to provide maintenance, support, updates, enhancements, or modifications.

smv-c-decoder's People

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.