Skip to main content

encode

Function encode 

Source
pub fn encode(el: &TleElements) -> (String, String)
Expand description

Encode TleElements as the two 69-character TLE lines (with checksums).

The caller is responsible for supplying normalized field values (defaults applied, widths validated); this function performs the fixed-width formatting, assumed-decimal encoding, and checksum generation.