ads-b
Version:
Library for decoding ADS-B messages emitted from Aircraft
28 lines (27 loc) • 905 B
JavaScript
;
/**
* MIT License
* Copyright (c) 2019 Matt Laver
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/mattlaver/ads-b/blob/master/LICENSE
*/
Object.defineProperty(exports, "__esModule", { value: true });
var IMessage_1 = require("../messages/IMessage");
var SurfacePositionDecoder = /** @class */ (function () {
function SurfacePositionDecoder() {
}
SurfacePositionDecoder.prototype.isValid = function (typeCode) {
return typeCode >= 5 && typeCode <= 8;
};
SurfacePositionDecoder.prototype.decode = function (message) {
return {
data: {
position: '',
},
messageType: IMessage_1.MessageType.SurfacePosition,
};
};
return SurfacePositionDecoder;
}());
exports.SurfacePositionDecoder = SurfacePositionDecoder;