Cleared up issue with parsing ints

+ Endianness was all out of whack
+ Everything is currently handled as little endian, easy to add a config for endianness later
+ num-bigint comes in clutch, it now handles the shifting of bits
This commit is contained in:
2021-10-09 13:58:41 -06:00
parent 6daf3a55f2
commit bb6f331c75
3 changed files with 31 additions and 26 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
# Ref: https://public.ccsds.org/Pubs/133x0b2e1.pdfa
#
# Example Packet:
# [0x08, 0x55, 0xc0, 0x00, 0x00, 0x05, 0x01, 0x02, 0x03, 0x04, 0x05]
# [0xe0, 0xa1, 0xc0, 0x00, 0x05, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05]
[[formats]]
name = "ccsds"