Giter Site home page Giter Site logo

avarehelper's Introduction

avarehelper

avarehelper

avarehelper's People

Contributors

apps4av avatar cyoung avatar eqxtfl avatar rasii avatar scytulip avatar srwalter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

avarehelper's Issues

Please release a new version

The last update on Google Play store was in July 2017. There have been several fixes since then. PR #18 is of particular interest since X-plane sync is barely functional in the best case, and nearly completely useless on networks with high UDP packet loss (e.g. the wifi router provided by my ISP).

The only way I can use Avare reliably with X-plane is to build this project myself.

Negative and 0xFFF pressure altitude not handled properly in Ownship GDL90 message.

int upper = ((int)(msg[10] & 0xFF)) << 4;
int lower = ((int)(msg[11] & 0xF0)) >> 4;
int alt = upper + lower;
if(alt == 0xFFF) {
mAltitude = -305; // -1000 ft
}
else {
alt *= 25;
alt -= 1000;
if(alt < -1000) {
alt = -1000;
}
/*
* In meters
*/
mAltitude = (int)((double)alt / 3.28084);
}

http://www.faa.gov/nextgen/programs/adsb/wsa/media/GDL90_Public_ICD_RevA.PDF

3.5.1.4 ALTITUDE
The Altitude field "ddd" contains the pressure altitude (referenced to 29.92 inches Hg), encoded using 25-foot resolution, offset by 1,000 feet. The 0xFFF value represents that the pressure altitude is invalid. The minimum altitude that can be represented is -1,000 feet. The maximum valid altitude is +101,350 feet.

Altitude Value
-1,000 feet 0x000
0 feet 0x028
+1000 feet 0x050
+101,350 feet 0xFFE
Invalid or unavailable 0xFFF

TrafficReportMessage not parsing ICAO address properly

I believe line 105 should be:
mIcaoAddress = ((((int)msg[1])&0xFF) << 16) + ((((int)(msg[2]) & 0xFF) << 8)) + ((((int)msg[3]) & 0xFF));

Your version does the bitshift prior to the AND, resulting in only the least significant byte being recorded

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.