Skip to content

KBE3D / KBSatellite / _tlejs / getChecksum1

函数: getChecksum1()

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

TLE line 1 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
getChecksum1('1 25544U 98067A   17206.18396726 ...');
3

KBE3D @3.0.0 Copyright © 2024-present KBE3D