Skip to content

KBE3D / KBSatellite / _tlejs / computeChecksum

函数: computeChecksum()

computeChecksum(singleTLELine: string): number

Determines the checksum for a single line of a TLE. Checksum = modulo 10 of sum of all numbers (including line number) + 1 for each negative sign (-). Everything else is ignored.

参数

singleTLELine

string

One line of a TLE.

返回

number

示例

ts
computeChecksum('1 25544U 98067A   17206.51418 ...');
3

KBE3D @3.0.0 Copyright © 2024-present KBE3D