Skip to content

KBE3D / KBSatellite / _tlejs / getChecksum2

函数: getChecksum2()

getChecksum2(tle: TLE, isTLEParsed?: boolean): number

TLE line 2 checksum (modulo 10), for verifying the integrity of this line of the TLE. Note that letters, blanks, periods, and plus signs are counted as 0, while minus signs are counted as 1. Output range: 0 to 9

参数

tle

TLE

Input TLE.

isTLEParsed?

boolean

Bypasses TLE parsing when true.

返回

number

示例

ts
getChecksum2('1 25544U 98067A   17206.18396726 ...');
0

KBE3D @3.0.0 Copyright © 2024-present KBE3D